Last active
October 7, 2017 18:41
-
-
Save vzaidman/d7b8b75902807845a000be040ca1bd2f to your computer and use it in GitHub Desktop.
Actions in Vanilla Redux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const INCREASE_BY = 'INCREASE_BY' | |
const DECREASE_BY = 'DECREASE_BY' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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