Files

9 lines
189 B
TypeScript

type PageProps = {
params: Promise<{ slug: string }>
}
export default async function Page(props: PageProps) {
const params = (await props.params)
return <p>child {params.slug}</p>
}