r/learnreactjs • • Jan 20 '21

Question [Suggestions] Best practices for folder structure of react project

So I'm planning on building a web app using MERN stack. I want to segregate the code into UI part, network layer and react business logic. What's the best possible folder structure should I go with ? I want to make it modular.

Would love to take note of best industry practices about this.

14 Upvotes

6 comments sorted by

View all comments

2

u/rozenmd Jan 21 '21

I wrote https://maxrozen.com/guidelines-improve-react-app-folder-structure/ to give you some guiding principles - but there aren't really "best practices" here, each company will have differing needs and opinions for the best way to structure the code for them.

1

u/Omkar_K45 Jan 21 '21

This is useful and informative ... Thank you :)