DEV Community

Discussion on: How to choose the best structure for react applications?

Collapse
 
minority profile image
minority • Edited

Hi, first I had this structure


components
++++ Signin
++++++ index.jsx
++++++ index.module.css
containers
++++ SigninForm
store
++++ Signin

The problem with this structure is that there are a lot of folders and they are in different places of the project.

feature
++ Signin
++++ components
++++++ SigninForm
++++++++ index.jsx
++++++++ index.module.css
++++ container
++++++ index.jsx
++++++ index.module.css
++++ reducer.js
++++ actions.js

At the moment I have done so.
But I also think how it can be done better.

Code project github.com/minority/node-react-mon...