A

Admin • 802.91K Points
Coach

Q. Which method in React class components can be used to update the state?

  • (A) this.setState()
  • (B) this.updateState()
  • (C) this.modifyState()
  • (D) this.changeState()
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
setState() schedules an update to a component's state.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.