Skip to content

Instantly share code, notes, and snippets.

@ChristianOConnor
Created April 29, 2022 22:31
Show Gist options
  • Save ChristianOConnor/8b3359ed98f5943d70f26d613aed2cfd to your computer and use it in GitHub Desktop.
Save ChristianOConnor/8b3359ed98f5943d70f26d613aed2cfd to your computer and use it in GitHub Desktop.
DynamicComponentWithNoSSR attempt 042922 pages/
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