mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
17 lines
402 B
TypeScript
17 lines
402 B
TypeScript
import Link from 'next/link'
|
|
|
|
export default async function Page(props) {
|
|
const params = await props.params
|
|
return (
|
|
<div>
|
|
<h1 id="slug-page">Visiting page {params.slug}</h1>
|
|
<Link href="/blog/a-post" style={{ display: 'block' }} id="to-blog-post">
|
|
Go to a post
|
|
</Link>
|
|
<Link href="/" style={{ display: 'block' }}>
|
|
Go home
|
|
</Link>
|
|
</div>
|
|
)
|
|
}
|