mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
12 lines
249 B
JavaScript
12 lines
249 B
JavaScript
|
import dynamic from 'next/dynamic'
|
||
|
import Welcome from '../../components/welcome'
|
||
|
|
||
|
const Welcome2 = dynamic(import('../../components/welcome'))
|
||
|
|
||
|
export default () => (
|
||
|
<div>
|
||
|
<Welcome name='normal' />
|
||
|
<Welcome2 name='dynamic' />
|
||
|
</div>
|
||
|
)
|