mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
27 lines
628 B
TypeScript
27 lines
628 B
TypeScript
import Link from 'next/link'
|
|
import { ReactNode, Suspense } from 'react'
|
|
export default function Root({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>
|
|
<ul>
|
|
<li>
|
|
<Link href="/">Home</Link>
|
|
</li>
|
|
<li>
|
|
<Link href="/slow-without-fallback">
|
|
Slow Page without fallback
|
|
</Link>
|
|
</li>
|
|
<li>
|
|
<Link href="/slow-with-fallback">Slow Page with fallback</Link>
|
|
</li>
|
|
</ul>
|
|
<main>
|
|
<Suspense>{children}</Suspense>
|
|
</main>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|