DEV Community

Discussion on: JavaScript Module Cheatsheet πŸ“„β€¬

Collapse
 
wh0am1 profile image
Carlos Aguilar

You can also re-export a default import.
It's already implicit, given the list already points the imported.default thing, but I think it's special enough to be included:

export { default as anyName } from 'path/module'