import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' // eslint-disable-next-line camelcase export async function unstable_getServerSideProps({ params, query }) { return { props: { world: 'world', query: query || {}, params: params || {}, time: new Date().getTime(), random: Math.random(), }, } } export default ({ world, time, params, random, query }) => { return ( <>

hello: {world}

time: {time}
{random}
{JSON.stringify(params)}
{JSON.stringify(query)}
{JSON.stringify(useRouter().query)}
to home
to another ) }