What is the standard folder structure of a React+Redux project?
Where do you put the
- action types
- components
- etc...
When I look at react-redux-socketio-chat I feel like this is maybe too much. Is it standard?
What is the standard folder structure of a React+Redux project?
Where do you put the
When I look at react-redux-socketio-chat I feel like this is maybe too much. Is it standard?
The structure suggested by Eni Arinde is aligned with what is suggested in the Redux documentation.
You may find this proposal interesting too: https://github.com/erikras/ducks-modular-redux
Basically you make modules by bundling your action creators and reducers together. That does make a lot of sense as you will find that they are coupled together quite a bit.
There is no standard for how you structure you react+redux app, but there is a common pattern. This simple boilerplate simple-redux-boilerplate is a good example of the pattern commonly used.
I have a boilerplate with basic setup of react redux following duck style. You can find it here: https://github.com/nlt2390/le-react-redux-duck
In general, this is how the folder structure looks like react redux file structure
connect(Component)react-router with some html wrapped outside them.convertStringToNumber(), apiUrl, etc{ post: [], postDetails: {title: 'lorem' } }