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 ( <>

hello: {world}

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