How to choose the best structure for react applications?

minority

minority

Posted on May 17, 2019

How to choose the best structure for react applications?

Hello,

I am a new beginner to React JS, and for learn i made a project.
I decided to write this post after transferring files from one directory to another many times.

For those who immediately want to watch the code GitHub

What happened to me

src/feature/

Auth (folder module feature, exported all reducers/routes)
   Signup
   RestorePassword
   Signin
      components/SigninForm
           index.jsx
           index.module.scss
      actions.js
      reducer.js
      index.jsx (container with connect redux)
   index.js (exported all reducers/routes)
   reducers.js (include all reducers module)
   routes.js (routes for module)
Cabinet
   Home
   Users
      index.jsx
   index.js
   routes.js
Shared
   Layout
   PrivateRoute

What structure are you using?

💖 💪 🙅 🚩
minority
minority

Posted on May 17, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related