Skip to content

Instantly share code, notes, and snippets.

@chrisui
Created October 7, 2015 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisui/fd61752be7ef350259a7 to your computer and use it in GitHub Desktop.
Save chrisui/fd61752be7ef350259a7 to your computer and use it in GitHub Desktop.
withState composition
withReducer(
'setCounter',
(state, param) =>
{counter: param, ...state})
)
withReducers({
setCounter: (state, param) =>
{counter: param, ...state})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment