My React folder pattern: 1
My React folder pattern:
1. The component folder structure mimics the routing structure. Result? Easy to find!
2. Exception: Reusable components in a folder called “shared”.
3. Put plain JS logic in well-named files under utils. Example: urlUtils.js.
4. Put fetch calls in /api