To avoid mutating state in reducers, either use Object.assign or the object spread operator to create a new copy of state that contains the changes
This is for performance and to make sure redux state history works