12 lines
189 B
JavaScript
12 lines
189 B
JavaScript
|
import { useRouter } from 'next/router'
|
||
|
|
||
|
const Page = () => (
|
||
|
<>
|
||
|
<p>post: {useRouter().query.post}</p>
|
||
|
</>
|
||
|
)
|
||
|
|
||
|
Page.getInitialProps = () => ({ hello: 'world' })
|
||
|
|
||
|
export default Page
|