Understanding Object.assign
Redux is a powerful yet simple way of managing the state of your app, but it is a purely functional library. This is something that JavaScript developers may not have had much experience with and on its surface, sounds a bit odd. The purpose of Redux is to manage state, but one of the tenants of functional programming is you can’t alter state… so what’s up with that? To keep things functional, Redux makes heavy use of the Object.