Skip to content

Instantly share code, notes, and snippets.

@ShMcK
Created February 26, 2018 15:39
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 ShMcK/6e8a7b576ffac1975ec2868c7816c37c to your computer and use it in GitHub Desktop.
Save ShMcK/6e8a7b576ffac1975ec2868c7816c37c to your computer and use it in GitHub Desktop.
Redux grouping
const count = {
state: 0,
reducers: {
increment: (state, action) => state + action.payload,
decrement: (state, action) => state - action.payload,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment