mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
10 lines
264 B
TypeScript
10 lines
264 B
TypeScript
export default async function Page(props0: { params: Promise<any> }) {
|
|
const params = await props0.params;
|
|
function generateProps() {
|
|
const props = { a: 1 }
|
|
props.a = 2
|
|
return props
|
|
}
|
|
return <div>hello {params.name} {generateProps().a}</div>
|
|
}
|