examples/react-router-v2-and-redux/src/state/rootReducer.js
function app(state = {}, action) {
  switch (action.type) {
    case CHANGE_BAZ:
      return {
        ...state,
        baz: action.payload,
      };
    default:
      return state;
  }
}
function app(state = {}, action) {
  switch (action.type) {
    case CHANGE_BAZ:
      return {
        ...state,
        baz: action.payload,
      };
    default:
      return state;
  }
}
function app ( state = { } , action ) { switch ( action . type ) { case CHANGE_BAZ : return { ... state , baz : action . payload , } ; default : return state ; } }
Simple redux reducer that handles the CHANGE_BAZ action, updating
the redux store to have the new value of baz.
Simple redux reducer that handles the CHANGE_BAZ action updating the redux store to have the new value of baz .