medium
+15 XP
FRONTEND

useContext Theme

Implement a theme context with toggle functionality.
You're exploring as a guest. Create a free account to save progress and submit solutions.
import { createContext, useContext, useState } from 'react';

const ThemeContext = createContext();

export default function App() {
  // Implement theme provider and toggle
}