johnny-dreamguns
10/7/2019 - 10:09 PM

Redux State

Redux state

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