DEV Community

[Comment from a deleted post]
Collapse
 
devtechk profile image
Devtechk • Edited

Hi! can you describe this mixing import, “ import defaultModule, { module1 as module, module2 } from "source/somePath/module.js";” as you wrote in your post? Thank you!

Collapse
 
agorushkin profile image
Arsenii Gorushkin

defaultModule would be a default export that we did in another file, modules in curly brackets would be named modules, for module1 we just change the name, while for module2 we import it as it is