There are many folders structure to follow in ReactJS
, And you might be confused which one you have to pick for your next project π€. We will answer this question in this article.
And iβm going to share with you a boilerplate that i will be using for my next projects.
By default ReactJS
comes with a simple project setup, so for those who never coded with react they shouldnβt be worried that much about folders structure.
Otherwise if you are experienced with react then your time has come to organize your application structure.
Our focus will be in the src
folder where weβre going to structure our folders.
(For the folder icons i am using a vs-code extension called β Material Icon Themeβ) intermediate
Images, Icons, Videos, Audios
etc....You might want to put all of the components in one place, but you better break it into 2 folders. (Components & Containers).
Navbar, Footer, Sidebar
.Home, Contact
etc...Layout
JSON
file for each language you want to translate.Eslint
& Prettier
to your project it will give you :
I created a Github repository with the same folder structure that i explained above. if you ever want to use it here is the link [HERE]
Alright so the structure that i followed it's based on my experience and also depends on the project .
If you feel good with your folder structure β then you are not obliged to follow the same structure as mine.
Thank you for reading this article β€οΈ
Yacouri Β© 2024, All rights reserved.