4 ms·
Default exports don’t export any name ie. symbol that can be easily associated with a exported value. Named exports, on the other hand, are all about having a n
by jiripospisil 9y ago
Default exports don’t export any name ie. symbol that can be easily associated with a exported value. Named exports, on the other hand, are all about having a name (pretty obvious right ) . This makes possible for IDEs to find and import dependencies for you automatically, which is a huge productivity boost.
There's no reason a default export cannot have a name.
export default function foo() {...}
With this in place VS Code is able to auto-import the dependency and refactor its name if necessary.