React Js Quiz
Home
Blog
Privacy Policy
Contact Us
React Hooks - useContext Quiz
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)