Created
April 29, 2022 22:31
-
-
Save ChristianOConnor/8b3359ed98f5943d70f26d613aed2cfd to your computer and use it in GitHub Desktop.
DynamicComponentWithNoSSR attempt 042922 pages/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Header from '../components/Header'; | |
import Footer from '../components/Footer'; | |
import dynamic from 'next/dynamic' | |
const DynamicComponentWithNoSSR = dynamic( | |
() => import('../components/Middle'), | |
{ ssr: false } | |
) | |
export default function Home() { | |
return ( | |
<> | |
<main className='d-flex flex-column min-vh-100'> | |
<Header /> | |
<br></br> | |
<br></br> | |
<DynamicComponentWithNoSSR /> | |
</main> | |
<footer> | |
<Footer /> | |
</footer> | |
</> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment