Back to quizzes
useContext Quiz
Java / Loops | Medium | 15 questions
Question 1 of 15
4 free questions left
What is the primary purpose of the useContext hook in React?
A
To access context values in a functional component.
B
To create a new context.
C
To manage local state.
D
To optimize performance of components.