text: export default function generateReducer(initialState, handlers) {
    return (state = initialState, action) => {
      const handler = handlers[action.type];
      if (handler) {
        return handler(state, action);
      }
      return state;
    };
  }
  