diff --git a/frontend/src/App.js b/frontend/src/App.js index a6f128ad31c8f978c2535cd9d31b6d7c7fb97911..7fec7f5e9d2fc8ec08c5a897201a642686e50998 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -51,6 +51,27 @@ function App() { }; }, []); + + + + + // import { useState, useEffect } from 'react'; + + // function MyComponent() { + // const [count, setCount] = useState(0); + + // useEffect(() => { + // const interval = setInterval(() => { + // setCount(count => count + 1); + // }, 1000); + + // return () => clearInterval(interval); + // }, []); // run only once when component mounts + + // return <div>{count}</div>; + // } + + return ( <div className="app" data-theme={theme? 'dark' : 'light'}> <DarkModeToggleButton handleDarkModeToggle={handleDarkModeToggle}/>