re: How do you organize your code / folder structure in you React app? VIEW POST

FULL DISCUSSION
 

I like to keep things simple so I put all my components are in src/components and my pages are in src/pages (suffixed with -Page). All API stuff is in src/api and I also have a src/utils for stuff that doesn't fit anywhere else.

It looks something like this:

src/
  api/
    auth.js
    user.js
  components/
    Header.js
    Header.css
  pages/
    LandingPage.js
    DashboardPage.js
  utils/
    registerServiceWorker.js

Recommended reading material: hackernoon.com/the-100-correct-way...

code of conduct - report abuse