When using default export, you can rename the imported module without using the _________ syntax.

  • import customName from
  • import as customName from
  • import {customName} from
  • import default as customName
In ES6, when importing a module with a default export and renaming it, you use the import customName from 'moduleName'; syntax. The as keyword is not required in this context.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *