August 2017
Beginner
374 pages
10h 41m
English
Next, we define action creators for our action types in src/undoable.js:
export const undo = () => { return { type: actionTypes.UNDO }}export const redo = () => { return { type: actionTypes.REDO }}
Remove the old non-generic action creators by doing the following:
export * from './counter'export * from './undo'
import { increment, decrement, reset } from '../actions'import { undo, redo } from '../undoable'
Read now
Unlock full access