Skip to content

Instantly share code, notes, and snippets.

@vzaidman
Created December 8, 2017 13:02
Show Gist options
  • Save vzaidman/0457f4eb0a71ada08f494f1039290568 to your computer and use it in GitHub Desktop.
Save vzaidman/0457f4eb0a71ada08f494f1039290568 to your computer and use it in GitHub Desktop.
import {increaseBy} from 'actions'
export const countReducer = makeReducer(increaseBy,
(state, {payload}) => state + payload,
{defaultState: 100}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment