mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
31 lines
600 B
TypeScript
31 lines
600 B
TypeScript
import Link from 'next/link'
|
|
import { ReactNode } from 'react'
|
|
|
|
const hrefs = [
|
|
'/slow/dynamic',
|
|
'/slow/static',
|
|
'/',
|
|
'/suspenseful/dynamic',
|
|
'/suspenseful/static',
|
|
]
|
|
|
|
export default function Root({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>
|
|
<div>
|
|
{hrefs.map((href) => (
|
|
<div key={href}>
|
|
<Link href={href} id={`to-${href.replace('/', '')}`}>
|
|
{`to ${href}`}
|
|
</Link>
|
|
<br />
|
|
</div>
|
|
))}
|
|
</div>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|