Skip to content

Instantly share code, notes, and snippets.

@syamjayaraj
Last active December 7, 2018 05:56
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 syamjayaraj/83f7993c29061025d5159d1b29aeac94 to your computer and use it in GitHub Desktop.
Save syamjayaraj/83f7993c29061025d5159d1b29aeac94 to your computer and use it in GitHub Desktop.
export const incrementCount = count => {
const num = count+1
return {
type: 'INCREMENT_COUNT',
count: num
}
}
export const decrementCount = count => {
const num = count - 1
return {
type: 'DECREMENT_COUNT',
count: num
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment