import Link from 'next/link' import { withRouter } from 'next/router' export default withRouter(({ router: { asPath, query } }) => { return
{JSON.stringify(query)}
hello
else
normal hello
{query.something === 'hello' && same query }
})