Skip to content

Instantly share code, notes, and snippets.

@Jahans3
Last active November 30, 2018 03:32
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 Jahans3/1776ac423d9bf82f658824fba4e2da67 to your computer and use it in GitHub Desktop.
Save Jahans3/1776ac423d9bf82f658824fba4e2da67 to your computer and use it in GitHub Desktop.
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