Skip to content

Instantly share code, notes, and snippets.

@vzaidman
Last active October 7, 2017 18:41
Show Gist options
  • Save vzaidman/d7b8b75902807845a000be040ca1bd2f to your computer and use it in GitHub Desktop.
Save vzaidman/d7b8b75902807845a000be040ca1bd2f to your computer and use it in GitHub Desktop.
Actions in Vanilla Redux
const INCREASE_BY = 'INCREASE_BY'
const DECREASE_BY = 'DECREASE_BY'
import { INCREASE_BY, DECREASE_BY } from './consts'
export const increaseBy = amount => ({
type: INCREASE_BY,
payload: amount
})
export const decreaseBy = amount => ({
type: DECREASE_BY,
payload: amount
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment