Skip to content

Instantly share code, notes, and snippets.

@weianofsteel
Created March 4, 2021 16:00
Show Gist options
  • Save weianofsteel/437bd7912bb1d20da6dd37e5878dd0c5 to your computer and use it in GitHub Desktop.
Save weianofsteel/437bd7912bb1d20da6dd37e5878dd0c5 to your computer and use it in GitHub Desktop.
dynamic without ssr
import dynamic from 'next/dynamic'
const Sample = dynamic(
() => import('../Sample.js'),
{ ssr : false }
)
Const Demo = () => {
return (
<React.Fragment>
<Sample/>
</React.Fragment>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment