🎓 View our courses: https://scrimba.com/links/all-courses
We set state in class components using this.setState.
Any class methods you create that need to call the this.setState method (which is available to our component because we're extending React.Component) should be declared as an arrow function.
💜 Play with this code on Scrimba: https://scrimba.com/learn/classcompon...
💻 Check out Scrimba’s interactive learning platform:
https://scrimba.com/
🌲 Linktree:
https://scrimba.com/links/linktree
On this page of the site you can watch the video online Setting state in class components | Class Components in React tutorial with a duration of hours minute second in good quality, which was uploaded by the user Scrimba 04 April 2022, share the link with friends and acquaintances, this video has already been watched 8,635 times on youtube and it was liked by 159 viewers. Enjoy your viewing!