This project contains the setup and code from the "Redux Essentials" tutorial in the Redux docs ( https://redux.js.org/tutorials/essentials/part-1-overview-concepts ).
The master
branch has a single commit that already has the initial project configuration in place. You can use this to follow along with the instructions from the tutorial.
The tutorial-steps
branch has the actual code commits from the tutorial. You can look at these to see how the official tutorial actually implements each piece of functionality along the way.
This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.
Note: If you are using Node 17, this project may not start correctly due to a known issue with Webpack and Node's OpenSSL changes, which causes an error message containing
ERR_OSSL_EVP_UNSUPPORTED
.
You can work around this by setting aNODE_OPTIONS=--openssl-legacy-provider
environment variable before starting the dev server. Details: webpack/webpack#14532 (comment)
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.