Files
Sebastian "Sebbie" Silbermann 4699f8416e [test] Add dedicated test for error when client functions are called from server components (#81930)
We have a more specific one for `use cache`. This is the counterpart for the default environment.
2025-07-22 18:07:41 +02:00

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>
)
}