next.js/test/integration/custom-routes/pages/with-params.js
with-params.js11 lines220 B
import { useRouter } from 'next/router'

const Page = () => {
  const { query } = useRouter()
  return <p id="query">{JSON.stringify(query)}</p>
}

Page.getInitialProps = () => ({ hello: 'GIPGIP' })

export default Page
Quest for Codev2.0.0
/
SIGN IN