A

Admin • 828.03K Points
Coach

Q. What does the second value returned by useState represent?

  • (A) The previous state
  • (B) The default value
  • (C) A function to update the state
  • (D) A backup value
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
`useState` returns an array with the current state and a function to update it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.