Course Content
State Management with Redux Toolkit in React
State Management with Redux Toolkit in React
2. Applying Redux Toolkit in React
What AwaitsUnderstanding the Project Code and File StructureCreating the Redux StoreIntegrating the Redux Store Into the React AppInspecting the Store in the React AppUnderstanding Actions and Action CreatorsUnderstanding the Role of ReducersInspecting Actions and Reducers in ReduxConnecting Redux with React ComponentsCompleting the App
Creating Your First React Redux Toolkit Project
If you're starting a new project with Create React App and want to set up Redux Toolkit, you can use the --template redux
flag during project creation:
This will create a new React application with Redux Toolkit already configured.
We have the same list of installed libraries in dependencies
in package.json
, but the whole app already has predefined store, actions, and reducer.
We won't inspect all predefined tools here. We'll create our own in the future for more understanding and customization.
Remember that we have two options to introduce the React Redux library into our React app.
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 5