mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
16 lines
286 B
TypeScript
16 lines
286 B
TypeScript
'use client'
|
|
|
|
import { useState } from 'react'
|
|
|
|
interface PageProps {
|
|
params: { slug: string }
|
|
searchParams: any
|
|
}
|
|
|
|
export default function Page({ params }: PageProps) {
|
|
const [text, setText] = useState('')
|
|
// usage of `params`
|
|
globalThis.f1(params)
|
|
globalThis.f2(params)
|
|
}
|