We're going on little tour of redux! In this workshop we'll cover the following topics:
- A Minimal Example - Store, Actions, Reducers and Rendering
- Using Action Creators
- Exercise: Add a Parameterized Action Creator
- A More Complicated Example - Constants, Split Reducers and Pure State Updates (yes, it will be a todo app)
- Exercise: Add Feature to Remove Items
- Reducing Boilerplate Part 1 -
combineReducers() - Async Actions - A Naive Approach
- Async Actions - What the Thunk?
- Exercise: Add an Async Action and Store
isLoadingState - Using Promise Middleware for Async Actions Part 1 -
redux-promise-middleware - Using Promise Middleware for Async Actions Part 2 - Combining
redux-thunkandredux-promise-middleware - Exercise: Handling Rejected Promises
- Reducing Boilerplate Part 2 -
redux-actions - Exercise: Use
createActionsandhandleActions - Using Promise Middleware for Async Actions Part 3 -
redux-promise - Exercise: What Happened to Progress? Fix
isLoadingState - Chaining Async Actions
- Wrap Up
You'll need:
- A working computer with git and Node.js 6.x installed.
- A working knowledge of JavaScript ES6 - we will be using ES6 features supported in Node.js, but no babel so no
importstatements ordefaultexports. - A fork of this repo's master (please don't skip ahead on branches) - create a branch called
workshoprather than working on master.
Note we won't be using react-redux or running anything in a browser for this workshop, this is purely about understanding how redux works.