Skip to content

Commit e8e57a0

Browse files
committed
Use next.js dynamic instead of lazy
1 parent 292cd81 commit e8e57a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

demo/pages/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import React, { lazy } from 'react';
1+
import React from 'react';
2+
import dynamic from 'next/dynamic';
23

3-
const L = lazy(() => import('../lazy'));
4+
const L = dynamic(() => import('../lazy'));
45

56
export default function App() {
67
return (

0 commit comments

Comments
 (0)