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
πŸ’¬ Discuss
βœ… Correct Answer: (C) To access context values
Explanation: useContext allows functional components to access values from a React Context.
Explanation by: Mr. Dubey
useContext allows functional components to access values from a React Context.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate