Complete useContext Call
Fill in the Blank Medium
Question
Fill in the blank to read the current theme from ThemeContext.
Code
const theme = _____(ThemeContext);
Hint
This Hook reads and subscribes to a Context.
Explanation
useContext is the Hook that reads a Context value. It takes the Context object (created by createContext) and returns the current value from the nearest Provider above.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.