📅  最后修改于: 2023-12-03 15:14:16.772000             🧑  作者: Mango
CRA Redux is a boilerplate project created using Create React App (CRA) and Redux. It provides a solid foundation for building scalable and maintainable React applications.
To start using CRA Redux, follow these steps:
git clone https://github.com/username/cra-redux.git
.npm install
.npm start
.The file structure of CRA Redux follows the Ducks pattern for Redux file organization. Each feature has its own folder containing its action types, actions, reducer, and selectors.
src/
├── app/
│ ├── App.js
│ ├── App.test.js
│ ├── index.js
│ └── store.js
├── counter/
│ ├── actions.js
│ ├── actionTypes.js
│ ├── reducer.js
│ └── selectors.js
├── todos/
│ ├── actions.js
│ ├── actionTypes.js
│ ├── reducer.js
│ └── selectors.js
├── index.js
└── router/
├── Router.js
└── routes.js
In the project directory, you can run:
npm start
Runs the app in development mode. Open http://localhost:3000 to view it in the browser.
npm test
Launches the test runner in the interactive watch mode.
npm run build
Builds the app for production to the build
folder.
CRA Redux is a great starting point for building React applications with Redux. It provides a solid architecture and toolset for building maintainable and scalable apps. Try it out today and let us know what you think!