What is the setState() method used for in React?

Mark as favorite