File size: 293 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 |
import dynamic from 'next/dynamic'
const DynamicComponent = dynamic(() => import(`../components/hello`))
const componentRoot = '@/some-components'
const Component1 = dynamic(() => import(`${componentRoot}/component1`))
const Component2 = dynamic(() => import(`${componentRoot}/component2`))
|