silverwolf-x's picture
download
raw
754 Bytes
import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
export async function getServerSideProps({ params }) {
return {
props: {
world: 'world',
params: params || {},
time: new Date().getTime(),
random: Math.random(),
},
}
}
export default ({ world, time, params, random }) => {
return (
<>
<p>hello: {world}</p>
<span>time: {time}</span>
<div id="random">{random}</div>
<div id="params">{JSON.stringify(params)}</div>
<div id="query">{JSON.stringify(useRouter().query)}</div>
<Link href="/" id="home">
to home
</Link>
<br />
<Link href="/another" id="another">
to another
</Link>
</>
)
}

Xet Storage Details

Size:
754 Bytes
·
Xet hash:
66925e6c5a9d6310d3744f95fe9fae586e31d3b57a3a02526cbcf77ceb3843a1

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