Skip to content

Instantly share code, notes, and snippets.

@devknoll
Created June 2, 2015 15:14
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 devknoll/bd80f1f55f645140ad34 to your computer and use it in GitHub Desktop.
Save devknoll/bd80f1f55f645140ad34 to your computer and use it in GitHub Desktop.
export default function CounterStore(state = initialState, action) {
switch (action.type) {
case INCREMENT_COUNTER:
return incremenent(state, action);
case DECREMENT_COUNTER:
return decremenent(state, action);
default:
return state;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment