DEV Community

loading...

Discussion on: JavaScript Module Cheatsheet 📄‬

Collapse
pavelloz profile image
Paweł Kowalski

There is also good old import * from 'x' ;)

Collapse
samanthaming profile image
Samantha Ming Author

Yup! I realize I missed that one so I included it in my notes 👏 The tidbit will also be updated, I don’t want to ruin the surprise...but I maybe have a new series coming up 😁

Collapse
mburszley profile image
Maximilian Burszley

import * is a terrible practice and pollutes the namespace.

Collapse
pavelloz profile image
Paweł Kowalski

I dont think so.

Thread Thread
mburszley profile image
Maximilian Burszley

Many best practices from many programming languages disagree with you.

Thread Thread
pavelloz profile image
Paweł Kowalski

Good to know. Cheers.

Collapse
oanouman profile image
Martial Anouman

Totally agree.

For me it's quite annoying to use imported func or var with unknown/unpredictable origin.

Forem Open with the Forem app