Replies: 1 comment 2 replies
-
Next has dynamic imports import dynamic from 'next/dynamic'
const DynamicComponent = dynamic(() => import('../components/hello'))
function Home() {
return (
<div>
<Header />
<DynamicComponent />
<p>HOME PAGE is here!</p>
</div>
)
}
export default Home``` |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way we can have dynamic modules, like https://loadable-components.com/docs/library-splitting/
I'm not sure if the actual implementation of dynamic is limited just for components
Thank you
Beta Was this translation helpful? Give feedback.
All reactions