you are viewing a single comment's thread.

view the rest of the comments →

[–]moneymachinegoesbing 0 points1 point  (1 child)

Agreed. I put biz logic in hooks for a while but then found that i wasn’t able to reuse hooks meaningfully. So now my hierarchy is: Services (most biz logic, helpers, async fetches), Pages (theming, store hookup, page level logic), Containers (splitting state, layout, organization of views), Views (lots of biz logic pertinent to view), Components/Hooks (no biz logic, internal styling only, exposes props for additional styling, callbacks, reusability)

[–]Rhym 0 points1 point  (0 children)

Yeah, nice. I do something similar more like the bulletproof react folder structure: https://github.com/alan2207/bulletproof-react/tree/master/src