[Poll] Should we index directories #40
Closed
marlonmarcello
started this conversation in
Polls
Replies: 3 comments
-
@marlonmarcello do we need a barrel file for this then, which exports _all _ the components? Or will this import style just work out of the box? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm all for this, it worked/looked great on the last Corgi project we worked on. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Vote ended. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Main advantages of indexing are:
index.js
file it doesn't matter if the sources are different extensions, we can change from.js
to.jsx
and it would be fine, we can even export from a.scss
module if neededWith named indexing we get:
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions