mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
30 lines
723 B
TypeScript
30 lines
723 B
TypeScript
import Link from 'next/link'
|
|
import { ReactNode } from 'react'
|
|
|
|
export default function Root({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>
|
|
<div>
|
|
<Link href="/slow" id="to-slow">
|
|
{`to /slow`}
|
|
</Link>
|
|
<br />
|
|
<Link href="/" id="to-home">
|
|
{`to /`}
|
|
</Link>
|
|
<br />
|
|
<Link href="/suspenseful/dynamic" id="to-suspenseful-dynamic">
|
|
{`to /suspenseful/dynamic`}
|
|
</Link>
|
|
<br />
|
|
<Link href="/suspenseful/static" id="to-suspenseful-static">
|
|
{`to /suspenseful/static`}
|
|
</Link>
|
|
</div>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|