To rename a named export during import, use the syntax import { originalName as ______ } from 'module-name';.

  • newName
  • importedName
  • aliasName
  • renamedName
When importing a named export and giving it a new name, use the as keyword, making option c) aliasName the correct choice. The syntax is import { originalName as aliasName } from 'module-name';.
Add your answer
Loading...

Leave a comment

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