mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
17 lines
286 B
TypeScript
17 lines
286 B
TypeScript
function useHook() {}
|
|
|
|
function Child() {
|
|
useHook()
|
|
return <p>child</p>
|
|
}
|
|
|
|
export default async function Page(props: { params: Promise<{ slug: string }> }) {
|
|
const params = await props.params;
|
|
return (
|
|
<div>
|
|
<Child />
|
|
<p>child {params.slug}</p>
|
|
</div>
|
|
)
|
|
}
|