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

Mark as favorite
Answer the question in 30 seconds!