()
| 14 | // Dark Mode (ContextAPI can also be used) |
| 15 | const [theme, setTheme] = useState("dark"); |
| 16 | const toggleTheme = () => { |
| 17 | setTheme((curr) => (curr === "light" ? "dark" : "light")); |
| 18 | }; |
| 19 | |
| 20 | return ( |
| 21 | <div className={`App_${theme}`}> |
nothing calls this directly
no outgoing calls
no test coverage detected