DEV Community

Discussion on: How I structure a React project

Collapse
 
kayis profile image
K

Cool idea. I use screens and components, but the components directory gets rather unwieldy xD

Collapse
 
glyphcat profile image
GlyphCat

Same here, tho I have a folder called "modules" which I believe is similar to the Utils mentioned in the main thread.

You could try dividing your components folder (instead of src) using the organic analogy, perhaps that would help?

Collapse
 
kayis profile image
K • Edited

I got

  • modules
    • components
    • screens
    • utils

The components directory is the biggest, but I'm looking into react-native-elements right now, so maybe this will remove the need for most of my small/dumb components.