11 lines
209 B
JavaScript
11 lines
209 B
JavaScript
|
import { useRouter } from 'next/router'
|
||
|
|
||
|
const Page = () => {
|
||
|
const { query } = useRouter()
|
||
|
return <p>{JSON.stringify(query)}</p>
|
||
|
}
|
||
|
|
||
|
Page.getInitialProps = () => ({ hello: 'GIPGIP' })
|
||
|
|
||
|
export default Page
|