-
-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Labels
Description
Summary 💡
As the project grows, the components
folder is getting bigger and bigger, I suggest a different approach to structure it where every component is in its own folder allowing the set of components to grow and follow clearly.
Also adding a pages
folder for every view on the router. And leaving App
and Router
outside.
Examples 🌈
components/
Preview/
__tests__
Preview.js
index.js
...
pages/
Playground/
__tests__
Playground.js
index.js
...
App.js
Router.js
Where Preview.js
is the actual component and index
just export it to do a clean import from the outside.
Motivation 🔦
Improve the maintainability of the project
cc/ @smeijer