export default function composeReducers(reducers) {
  return (state, action) => reducers.reduce(
    (prevState, reducer) => reducer(prevState, action),
    state
  );
}

export default function composeReducers(reducers) {
  return (state, action) => reducers.reduceRight(
    (prevState, reducer) => reducer(prevState, action),
    state
  );
}

Update composeReducers to go right-to-left
Update composeReducers to go right-to-left
