DEV Community

Discussion on: How do you structure your React projects?

Collapse
 
cwraytech profile image
Christopher Wray

I would check out Next js. They provide a sensible structure for your react apps and they provide added features as well!(:

Collapse
 
cwraytech profile image
Christopher Wray • Edited

Also, personally I like to keep things as organized as possible. Usually I have a components folder where I place reusable components, a layouts folder for different page layouts, and a pages folder for different pages on the site.

I also have an assets folder for css and images.

Separating concerns this way makes it much easier to go to code that contains exactly what you need to update, vs searching through several files.

Collapse
 
isarisariver profile image
Marian

That's good advice, thank you :)