1.

How to structure Redux top-level directories?

Answer»

All the applications have multiple top-level directories as mentioned below:

  • Components: it is used for “dumb” React components that are UNFAMILIAR with Redux.
  • Containers: It is used for “SMART” React components which are connected to the Redux.
  • Actions: It is used for all the action creators, where the file name should be corresponding to the part of the app.
  • REDUCERS: It is used for all the reducers where the file name is corresponding to the state key.
  • Store: it is used for store initialization. This directory works best in SMALL and mid-level size apps.


Discussion

No Comment Found