A

Admin • 833.24K Points
Coach

Q. What is the purpose of useContext in React?

  • (A) To manage routing
  • (B) To fetch data
  • (C) To access context values
  • (D) To handle forms
  • Correct Answer - Option(C)
  • Views: 29
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

useContext allows functional components to access values from a React Context.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.