Do the variable names when using named imports have to match the variable names for the named exports?


#1

Question

Do the variable names when using named imports have to match the variable names for the named exports?

Answer

Unless we are using aliases for the named imports we should be using the exact variable names (or aliased variable names) from the named exports.


FAQ: Intermediate JavaScript Modules - Named Imports