Context & Patterns β Beginner React challenge.
Wire up a small theme system with a context provider, a `useTheme` hook, and a toggle. Great warmup for the Context & Patterns track.
type Theme = "light" | "dark";
function useTheme(): { theme: Theme; toggle: () => void };<ThemeProvider> <App /> </ThemeProvider>