Created
January 23, 2024 21:18
-
-
Save CarlosDanielDev/96cf6635582af3fc293279e8fe02d3cd to your computer and use it in GitHub Desktop.
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' | |
import Component from 'component' | |
const DynamicComponent = dynamic<React.ComponentProps<typeof Component>>(() => | |
import('component').then((mod) => mod.Component), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment