Updating complex state with this.setState() | Class Components in React tutorial

Learn how to update complex state in React using this.setState(). By using `this.setState()`, we can avoid needing to copy in properties we are not updating. We only need to declare the ones we are changing.

Play with this code on Scrimba: https://scrimba.com/learn/classcomponents/

Check out Scrimba’s interactive learning platform:


Source: https://www.youtube.com/watch?v=nqLfKpZ5sKg

Leave a Reply

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