mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
4699f8416e
We have a more specific one for `use cache`. This is the counterpart for the default environment.
16 lines
240 B
JavaScript
16 lines
240 B
JavaScript
import { Suspense } from 'react'
|
|
import { useClient } from './client'
|
|
|
|
function Component() {
|
|
useClient()
|
|
|
|
return <p>Hello, Dave</p>
|
|
}
|
|
export default function Page() {
|
|
return (
|
|
<Suspense>
|
|
<Component />
|
|
</Suspense>
|
|
)
|
|
}
|