Skip to content

Instantly share code, notes, and snippets.

@pfulop
Created August 30, 2016 13: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 pfulop/bde3d53f929f4476736c91ae67d51a4f to your computer and use it in GitHub Desktop.
Save pfulop/bde3d53f929f4476736c91ae67d51a4f to your computer and use it in GitHub Desktop.
import {CHANGED_ITEMS} from '../actions/items';
const initialState = [];
export default (state = initialState, action) => {
switch (action.type) {
case CHANGED_ITEMS:
return action.data;
default:
return state;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment