React JS Quiz
Home
Blog
Privacy Policy
Contact Us
Interview Questions
New
Tutorials
Buy me a coffee
useContext
What is the purpose of the useContext hook in React.js?
Report this question
To create a new context
To consume a context value
Show Explanation
The useContext hook in React.js is used to consume a context value.
To update the state of a component
To handle component lifecycle events
Next Question (1/20)
Question 1 of 20 in
useContext