August 2017
Beginner
374 pages
10h 41m
English
Our goal is to create a generic undo/redo higher-order reducer, which we will call undoable (because it makes a reducer function undoable):
export default function undoable (reducer) {
const initialState = {} // TODO
return function enhancedReducer (state = initialState, action) { // TODO }Read now
Unlock full access