Search⌘ K
AI Features

Quiz 5

Explore how to manage Redux state immutably by implementing an undoable reducer that reverts previous actions and modifying reducers to add data via actions. This lesson helps you understand handling undo actions and safely updating state arrays, improving your Redux skills for consistent state management.

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 ...