mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
12 lines
302 B
TypeScript
12 lines
302 B
TypeScript
'use client'
|
|
|
|
import { useState, type JSX, use } from 'react';
|
|
|
|
export default function Page(props: { params: Promise<{ slug: string }> }): JSX.Element {
|
|
const params = use(props.params);
|
|
const [text, setText] = useState('')
|
|
// usage of `params`
|
|
globalThis.f1(params)
|
|
globalThis.f2(params)
|
|
}
|