With setState in React, you don't necessarily have to copy to update the state. setState merges the partial object you provide with the current state.
https://reactjs.org/docs/state-and-lifecycle.html#state-upda...
In Redux reducers, however, you need a full copy.
With setState in React, you don't necessarily have to copy to update the state. setState merges the partial object you provide with the current state.
https://reactjs.org/docs/state-and-lifecycle.html#state-upda...
In Redux reducers, however, you need a full copy.