Hamkytech's picture
Upload pages/_app.js with huggingface_hub
394a502 verified
Raw History Blame Contribute Delete
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;