Using object spread operator in redux.

Since one of the core principles of Redux is to never mutate state, you’ll often find yourself using Object.assign() to create copies of objects with new or updated values. For example, in the myApp Object.assign() is used to return new state with updated property qty….

Source: https://medium.com/@ashu.singh212/using-object-spread-operator-in-redux-1f63c8803621

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.