next.js/test/e2e/app-dir/chunk-loading/components/LazyShared.tsx
LazyShared.tsx11 lines242 B
import { lazy } from 'react'

const LazySuperShared = lazy(async () => {
  const module = await import('./SuperShared')
  return { default: module.SuperShared }
})

export function LazyShared() {
  return <LazySuperShared from="dynamic" />
}
Quest for Codev2.0.0
/
SIGN IN