8 lines
159 B
JavaScript
8 lines
159 B
JavaScript
|
import { useRouter } from 'next/router'
|
||
|
|
||
|
export default () => {
|
||
|
const router = useRouter()
|
||
|
const { query } = router
|
||
|
return <p>This is {query.post}</p>
|
||
|
}
|