mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
31 lines
623 B
TypeScript
31 lines
623 B
TypeScript
import Link from 'next/link'
|
|
import { ReactNode } from 'react'
|
|
|
|
const hrefs = [
|
|
'/dynamic-metadata',
|
|
'/dynamic-metadata/partial',
|
|
'/dynamic-page',
|
|
'/dynamic-page/partial',
|
|
'/fully-dynamic',
|
|
'/fully-static',
|
|
]
|
|
|
|
export default function Root({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>
|
|
<div>
|
|
{hrefs.map((href) => (
|
|
<div key={href}>
|
|
<Link href={href} id={`to-${href}`} prefetch={false}>
|
|
{`to ${href}`}
|
|
</Link>
|
|
</div>
|
|
))}
|
|
</div>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|