A BEAUTIFUL WAY TO WORK WITH REACT — REDUX
I’m working with react 2 years ago and I allways askme. Wich is the best way to work with react and redux? But I never find the answer.
I created a strcuture to work with react and redux, I know that this isn’t the best way but is a beautiful way to work with react and redux. In my strcuture I implement design principles (LINK : https://reactjs.org/docs/design-principles.html)
FILES STRUCT
bin/create-component.js
Is the new. This file create components with the structure below.
In the package.js you can to find the executable like create-component and you just write.
npm run create-component {name-component}
To create a component you need create components directory before.
components
Directory that contain all components to the app.
data
Directory that contain all about data as fix lists, web services, etc.
public
Directory that contain all about public static files as images, fonts, etc.
Redux
Directory that contain all about Redux, in this directory we can see actions and reducers directories
Router
Directory that contain all routes into the app.
If anyone want the complete project, you can download the project in the next link.
https://github.com/javierlecca/beautiful-way-to-work-react-redux
Thanks for all, and give me a star in github 💪