Created
March 4, 2021 10:46
-
-
Save weianofsteel/df078e7e2ebe9762e41a132ee36a88f8 to your computer and use it in GitHub Desktop.
next.js dynamic import
This file contains hidden or 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 dynamic from 'next/dynamic' | |
const Sample = dynamic(() => import('../Sample.js')) | |
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