Q. Which method updates state in a class component?

A
updateState()
B
setState()
C
changeState()
D
update()
Solution:

setState() updates the state in a class component.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!