score:0

Accepted answer
// Merge the partial state and the previous state.
return Object.assign({}, prevState, partialState);

Related Query

More Query from same tag