Skip to content

Instantly share code, notes, and snippets.

@Jahans3 Jahans3/action-creators.js
Last active Nov 30, 2018

Embed
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
You can’t perform that action at this time.