Spaces:
Sleeping
Sleeping
Download pages/_app.js from Hamkytech/anycoder-3270974f: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/Hamkytech/anycoder-3270974f/resolve/main/pages/_app.js
- Command line
-
hf download hf://spaces/Hamkytech/anycoder-3270974f/pages/_app.js
-
curl -L -o _app.js https://huggingface.co/spaces/Hamkytech/anycoder-3270974f/resolve/main/pages/_app.js
327 Bytes
| import '../styles/globals.css'; | |
| import { useEffect, useState } from 'react'; | |
| function MyApp({ Component, pageProps }) { | |
| const [mounted, setMounted] = useState(false); | |
| useEffect(() => { | |
| setMounted(true); | |
| }, []); | |
| if (!mounted) { | |
| return null; | |
| } | |
| return <Component {...pageProps} />; | |
| } | |
| export default MyApp; |