Skip to content

Instantly share code, notes, and snippets.

@abohannon
Last active February 21, 2018 03:41
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 abohannon/e0564b2fd53e1bbcbe94b17ac380d134 to your computer and use it in GitHub Desktop.
Save abohannon/e0564b2fd53e1bbcbe94b17ac380d134 to your computer and use it in GitHub Desktop.
const INITIAL_STATE = {};
export default (state = INITIAL_STATE, action) => {
switch (action.type) {
case ACTION_TYPE: {
const newState = {};
return {...state, ...newState};
}
default:
return state;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment