mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
20 lines
491 B
JavaScript
20 lines
491 B
JavaScript
import Link from 'next/link'
|
|
|
|
export default async function Page(props) {
|
|
const params = await props.params
|
|
const nextUrl = [...params.slug, 'slug']
|
|
return (
|
|
<>
|
|
<Link id="to-next-url" href={`/dynamic-catchall/${nextUrl.join('/')}`}>
|
|
To next url
|
|
</Link>
|
|
<Link href="/dynamic/first" id="to-dynamic-first">
|
|
To next url
|
|
</Link>
|
|
<p id={`catchall-${params.slug.join('-')}`}>
|
|
catchall {params.slug.join(' ')}
|
|
</p>
|
|
</>
|
|
)
|
|
}
|