To import a default export, use import ______ from 'module-name';.

  • defaultImport
  • importDefault
  • importDefaultExport
  • importDefaultModule
In ES6, when importing a default export from a module, you use the syntax import name from 'module-name';. The keyword default is not used, making option b) importDefault the correct choice.
Add your answer
Loading...

Leave a comment

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