useReactiveClient
hook, which wraps the client in a proxy that is ready to be used
directly inside JSX.
useReactiveClient
inside your component.
This wraps the client in a proxy that keeps track of, for each render, 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.