You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
418 B
14 lines
418 B
export default function Page({ params, searchParams }: {
|
|
// /blog/hello-world => { params: { slug: 'hello-world' } }
|
|
// /blog/hello-world?id=123 => { searchParams: { id: '123' } }
|
|
params: { slug: string },
|
|
searchParams: { id: string },
|
|
}) {
|
|
return (
|
|
<div>
|
|
<p>{params.slug}</p>
|
|
<p>{searchParams.id}</p>
|
|
<p>{searchParams.justin}</p>
|
|
</div>
|
|
);
|
|
} |