Learn how to manage the state of your react component using redux.
- Create .env
HOST=localhost
PORT=8080
- Install app dependencies found in package.json
npm install
- Start building your calculator
npm run dev - begins a webpack dev server
This script starts a webpack dev server. The app url is depends on your .env file. http://localhost:8080 for this example
- What is a store?
- How does the store manage the application state?
- How do I create a store?
- What is a reducer?
- How do I a create a reducer?
- How do I register a reducer with the store?
- How do libraries like
reduxify
andreact-actions
help?
- How do I connect my store to react?
- How does
connect(selector, mapDispatch)(Component)
expose your store to the component?
- What is
reselect
? - How do I create a selector?
- How do components consume selectors?
- How does
mapDispatch
work? - How do I map my actions to react props?