mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## Bug
- [x] Related issues linked using `fixes #number`
- fixes
- #38528
- #40432
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
Hi, it is my first pull request in this project.
So... if you need anything more tasks, please tell me.
Co-authored-by: JJ Kasper <[email protected]>
12 lines
205 B
JavaScript
12 lines
205 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
export default function DynamicRoutes() {
|
|
const { query } = useRouter()
|
|
|
|
return (
|
|
<main>
|
|
<h1 id="route-name">{query.routeName}</h1>
|
|
</main>
|
|
)
|
|
}
|