The useContext hook is designed for functional components and cannot be used directly in class components.
Question 6 of 20 in useContext