Spaces:
Sleeping
Sleeping
File size: 327 Bytes
394a502 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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; |