How I structure my React/TS applications
(I have updated my react structure, you can read it here: https://dev.to/djamaile/how-i-structure-my-react-ts-applications-2021-145j)
It is currently summer vacation for me and I will be working on side projects. For my summer projects, I will use ReactJS for every front-end I create. I created a boilerplate repository that I can re-use for every side project. So, the goal of this post is to display my structure, but I am interested in your project structure and how you would do it differently.
If you just want to see the code, here you go: https://github.com/djamaile/react-boilerplate-2020
Here is the picture of the structure:
Let's dive into the folders!
📖 Api
In the API folder, I keep my API routes and API calls. Also, I create a generic request function with Axios. Which can be reused for API-requests.

🖼️ Assets
In the assets folders, I have three subfolders. Firstly, the CSS folder where I keep all my in-js-CSS files. Secondly, the images folder and I think this folder speaks for itself. Lastly, the theme folder and the theme folder is for Material-UI.
For every React project, I use Material-UI. With Material-UI we can also create a custom theme and that is what we do in the theme folder.
