You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JS imports should all be import * as ns from "../blah", instead of import {blah, blah, blah, ...} from "../blah". The former makes for more readable code, which doesn't require bouncing around the file when trying to figure out where things came from, or (when writing) to use a new function from a namespace you've already imported.
In the code you then see ns.doStuff()
instead of
doStuff()
The text was updated successfully, but these errors were encountered:
JS imports should all be
import * as ns from "../blah"
, instead ofimport {blah, blah, blah, ...} from "../blah"
. The former makes for more readable code, which doesn't require bouncing around the file when trying to figure out where things came from, or (when writing) to use a new function from a namespace you've already imported.In the code you then see
ns.doStuff()
instead of
doStuff()
The text was updated successfully, but these errors were encountered: