The package that provides a hook to make the client’s state reactive.

Hooks

useReactiveClient

useReactiveClient<T>(target: T) => T

Receives the client and returns it wrapped in a proxy.

In each rerender, the proxy keeps track of which variables you have accessed. As soon as one of these variables’ state mutates, React automatically rerenders, and the cycle restarts.

This means you only trigger rerenders for variables you are actually reading from, keeping rerenders to a minimum