Kizspy | Question: 25
(Choose 1 answer)
How would you use the useContext Hook to access a shared theme in a React component?
A. const theme = useContext(ThemeContext);
B. const {theme} = useContext(ThemeContext);
C. const {theme} = useContext(ThemeContext.Provider);
D. const theme = useContext(ThemeContext.Provider);