DEV Community

Discussion on: How I structure my mid-size NextJS projects

Collapse
 
stradivario profile image
Kristiqn Tachev

This is called Barel export and it helps with tree shaking and bundle resolution. In large project it helps to bundle it faster. I do recommend to use barel exports.

Regards!

Collapse
 
josemukorivo profile image
Joseph Mukorivo

I also like the convenience of importing components from components instead of components/button that's why I sometimes find myself using these index files