NetanelBasal
3/16/2017 - 1:21 PM

store.js

const appReducer = combineReducers({
   todos,
   visibilityFilter
});

const rootReducer = ( state, action ) => {
  if ( action.type === LOG_OUT ) {
    state = undefined;
  }
      
  return appReducer(state, action)
}

const store = createStore(rootReducer);