DEV Community

Discussion on: Use Named Exports over Default Exports in JavaScript

Collapse
 
insidewhy profile image
insidewhy • Edited

Why do you prefer to export everything at the bottom of the module? It's more verbose, since you have to repeat every exported symbol's name, and nobody reading your code will know what is exported without having to scroll all the way to the bottom.

I think that whether something is exported or not as a very important implementation detail that should live right alongside the symbol.