mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Fixes a warning being logged to the console when using `href` with a dynamic path. Fixes #16794
10 lines
186 B
JavaScript
10 lines
186 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
const Page = () => {
|
|
const router = useRouter()
|
|
const { query } = router
|
|
return <p id="asdf">This is {query.id}</p>
|
|
}
|
|
|
|
export default Page
|