Suppose there exists some ThemeContext created with createCo…
Suppose there exists some ThemeContext created with createContext and a context provider below is used. export function ThemeProvider() { const = useState(“light”); const toggle = () => { setTheme((t) => (t === “light” ? “dark” : “light”)); }; return ( ); } How would BadgerComponent access the theme from ThemeContext?