mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
9 lines
215 B
TypeScript
9 lines
215 B
TypeScript
import { use } from "react";
|
|
function useHook() {}
|
|
|
|
export default function Page(props: { params: Promise<{ slug: string }> }) {
|
|
const params = use(props.params);
|
|
useHook()
|
|
return <p>child {params.slug}</p>
|
|
}
|