August 2017
Beginner
374 pages
10h 41m
English
Now, we wrap our reducer with the undoable higher-order reducer from the redux-undo library.
Consider the following import statement:
import undoable from '../undoable'
Replace it with the redux-undo import:
import undoable from 'redux-undo'
We have already wrapped our reducer with the undoable function in the preceding section:
const appReducer = combineReducers({ counter: undoable(counterReducer),})
Ensure that the highlighted code in the preceding code is present.
Read now
Unlock full access