Skip to content

Client Directives

You are able to pass client:* props.

```jsx live props={{ "client:load": true }}
// code
```
import { useState } from 'preact/hooks'
export default () => {
const [count, setCount] = useState(0)
return (
<button onClick={() => setCount(count + 1)}>
{count}
</button>
)
}