How do you update the state of a component?

We can update the state of a component by using the built-in ‘setState()’ method:

class-app

Comments

Leave a Reply

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