silverwolf-x's picture
download
raw
565 Bytes
import Link from 'next/link'
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
const links = []
for (let n = 1; n <= 5; n++) {
links.push(
<li key={n}>
<Link href={`/page/${n}`}>Page {n}</Link>
</li>
)
links.push(
<li key={n + '-with-search-param'}>
<Link href={`/page/${n}?param=true`}>Page {n} (with search param)</Link>
</li>
)
}
return (
<html lang="en">
<body>
<ul>{links}</ul>
<div>{children}</div>
</body>
</html>
)
}

Xet Storage Details

Size:
565 Bytes
·
Xet hash:
b602f55c1a419079a628bd9a4daa43c7260ece2ca390ec922dad64b3e68b98ce

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.