mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Follow up for https://github.com/vercel/next.js/pull/40415 Remove internal next client api determination, fully relying on `'client'` directive. Change `.client.js` extension to `.js ` in tests, remove legacy / unused test files
19 lines
364 B
JavaScript
19 lines
364 B
JavaScript
import { lazy, Suspense } from 'react'
|
|
import dynamic from 'next/dynamic'
|
|
|
|
const Foo = lazy(() => import('../components/foo'))
|
|
const Bar = dynamic(() => import('../components/bar'), {
|
|
suspense: true,
|
|
})
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
<Suspense fallback="fallback">
|
|
<Foo />
|
|
<Bar />
|
|
</Suspense>
|
|
</div>
|
|
)
|
|
}
|