Q. Which method updates state in a class component?
Solution:
setState() updates the state in a class component.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
setState() updates the state in a class component.
Strengthen Your Practice with our comprehensive question bank.