React Core & Hooks (407 Qs)•Part 5: React Redux State Management (101 - 134)
How to structure Redux top level directories?
mid LevelMost AskedState Management
Most of the applications has several top-level directories as below:
- Components: Used for dumb components unaware of Redux.
- Containers: Used for smart components connected to Redux.
- Actions: Used for all action creators, where file names correspond to part of the app.
- Reducers: Used for all reducers, where files name correspond to state key.
- Store: Used for store initialization and configuration.