Skip to content

Commit

Permalink
Update 06-lazy-loading.mdx: Incorrect filename in Example on "Importi…
Browse files Browse the repository at this point in the history
…ng Named Imports" (#52932)

The correct filename is seen on PagesOnly. But on AppOnly, the filename is not correct. It should be "hello" instead of "ClientComponent".

line to change:
from:
import('../components/ClientComponent').then((mod) => mod.Hello)

to:
import('../components/hello').then((mod) => mod.Hello)


line to change:
from:
import('../components/ClientComponent').then((mod) => mod.Hello)

to:
import('../components/hello').then((mod) => mod.Hello)
  • Loading branch information
daryllreillo committed Jul 20, 2023
1 parent 8e3cd83 commit 66f0983
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function Hello() {
import dynamic from 'next/dynamic'

const ClientComponent = dynamic(() =>
import('../components/ClientComponent').then((mod) => mod.Hello)
import('../components/hello').then((mod) => mod.Hello)
)
```

Expand Down

0 comments on commit 66f0983

Please sign in to comment.