import { useRouter } from 'next/router' export default function Another(props) { const router = useRouter() return (

{JSON.stringify({ pathname: router.pathname, asPath: router.asPath, query: router.query, another: true, })}

) }