[ ] Change fonder structure
(this folder structure is ok, but for big projects it is hard to maintain)
(deviding in modules is easier to maintain as sagas, actions, reducers for *user are in one place)
A separate file for action constants is not mandatory, as all constants can be stored in actions.js file. If you want to keep them in a separate file may be better to rename types.js :arrow_right: constants.js. But I will go with approach of keeping actions constants in actions.js.
The store/redux is ok but can be improved:
My suggestions:
redux
folder tostore
src/redux/store.js
:arrow_right:src/store/index.js
A separate file for action constants is not mandatory, as all constants can be stored in
actions.js
file. If you want to keep them in a separate file may be better to renametypes.js
:arrow_right:constants.js
. But I will go with approach of keeping actions constants inactions.js
.Useful link: Choosing the best folder structure for your React application