If I am following a component-based architecture and defining each component as an ES6 module, I organize all components in a /components folder. This folder is further divided into subfolders for grouped components.
/js
/components
- header
- navbar
- filterbox
- search
- tabs
Where should I call these components and where does the business logic belong? Should it all be in a master index.js file? This approach doesn't seem very contemporary.
Appreciate any insights you can provide.
tl;dr - How to structure a CBA project?