what is the index.js for?
A typical pattern for exporting all files within a folder instead of having a bunch of different imports is done via an index.js. You import all sibling files to this file and then export from there.
index.js
oh i see
Thanks, btw thanks for the tip above really helped me
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
what is the index.js for?
A typical pattern for exporting all files within a folder instead of having a bunch of different imports is done via an
index.js
. You import all sibling files to this file and then export from there.oh i see
Thanks, btw thanks for the tip above really helped me