mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
26 lines
554 B
TypeScript
26 lines
554 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="/dynamic-api" id="to-dynamic-api">
|
|
{`to /dynamic-api`}
|
|
</Link>
|
|
</div>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|