DEV Community

Discussion on: 5 Essential Practices for Front-End Developers (React Edition)

Collapse
 
morganney profile image
Morgan Ney • Edited

I disagree with #2 and #3. After having used barrel files and default exports regularly, I’ve decided they are mostly anti-patterns. I would prefer explicit imports of module paths and named exports given the option.

After taking a closer look at #3 I see you are advocating for named exports over defaults 👍.