Quiz 5

Test your knowledge on reducers.

We'll cover the following...
Technical Quiz
1.

Does the following code that is used to combineReducers function properly?

const combineReducers = (reducersMap) => {
  return (state = {}, action) => {
    const newState = {};

    Object.entries(reducersMap).forEach(([subStateName, subReducer]) => {
      newState[subStateName] = subReducer(state[subStateName], action);
    });

    return newState;
  };
};
A.

Yes

B.

No


1 / 1

Q2. Implement the undoable function that ...