mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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>
|
|
)
|
|
}
|