next.js/test/integration/rewrites-has-condition/pages/another.js
another.js14 lines275 B
import { useRouter } from 'next/router'

export default function Page() {
  const router = useRouter()

  return (
    <>
      <p id="another">another page</p>
      <p id="pathname">{router.pathname}</p>
      <p id="query">{JSON.stringify(router.query)}</p>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN