Skip to content

Instantly share code, notes, and snippets.



Last active Nov 30, 2018
What would you like to do?
Action creators
// Action types
const ADD_ONE = 'ADD_ONE';
const ADD_N = 'ADD_N';
// Actions
export const addOne = () => ({ type: ADD_ONE });
export const addN = amount => ({ type: ADD_N, payload: amount });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment