Big and extensive ReactJS application should have a well planned and organized project structure.
I will show you how I built a Best Scalable Stru...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for sharing! Although, it would've been nice if you could explain why this works best for you and how you've got there :) Others will have different needs. Maybe your journey to finding out this architecture can help others finding theirs.
I like it.
Thank you. I'm glad you liked it.
There’s so much freedom with React it can be overwhelming on how to logically structure a project, especially once it gets larger.
This is great and I’ll definitely be giving this a go!
Thanks, Nick,
Yes in react there is a lot of freedom and I have seen many projects structured not in a good manner which is not very easy to scale the app with those. Even I made such mistakes in my earlier days with React. But with time I enhance this architecture and I found it very handy when it comes to scale app and increase maintainability.
Good structure, nice and neat! would probably use this structure for my future project!
I'm glad you liked the structure. I would be really happy if you use it.
One of the most important things to remember about React: there is no "best React architecture"
Yes, I fully agree with this. I used this title (Best Scalable Architecture) for 2 major reasons.
You need to think how others will read your article: people might think that the architecture you propose is the best for every use case. It isn't. This architecture, like you said is best for you, for that specific project at the specific time. Once your project grow substantially it might not be good anymore.
As per "Catch the eye of developers in this huge sea of posts flowing every minute" - so you went like "title is misleading, but it works!"? Bad idea.
Also: you named one of your folder
axios
- the moment you change the axios client to something else you need to rename the folder as well (assuming you'll remember to do so). It's better to name your folder with names that describe functionality (e.g.api
orapi-client
or similar) rather then library you use at that specific moment...Sure. Thanks for the suggestions, I will update the folder name :). And yes as I mentioned this architecture has proved to be my best because I have used this in more than 5 projects and found it very easy to scale the application. As the application grew I haven't had any issue in adding more functionalities.
Regarding the title: I didn't mean that the Title is misleading, This architecture has proved to be my best. (While thinking for post title I thought it this way only. {It was best for me and scalable so I kept the title
Best Scalable React App Architecture
and 2020 added with keeping SEO in mind}) As you already have mentioned in your first comment there is nothing like best react architecture. We are free to use any pattern and style and using this style I felt this is best for me and I shared it with others too.Nice , I would like to use complete Typescript startup pack similar to this structure if you have any.
Yes I'll create a typescript version shortly.