A

Admin • 831.35K Points
Coach

Q. What is the purpose of the useState hook in React?

  • (A) To perform side effects
  • (B) To manage component state
  • (C) To fetch data from API
  • (D) To navigate between pages
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
The useState hook is used to create and manage local component state in functional components.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.