Home > @theatre/react

react package

Functions

Function Description
useDerivationWithoutReRender(der) This makes sure the derivation remains hot as long as the component calling the hook is alive, but it does not return the value of the derivation, and it does not re-render the component if the value of the derivation changes.
usePrism(fn, deps, debugLabel)
usePrismWithoutReRender(fn, deps) This makes sure the prism derivation remains hot as long as the component calling the hook is alive, but it does not return the value of the derivation, and it does not re-render the component if the value of the derivation changes.Use this hook if you plan to read a derivation in a useEffect() call, without the derivation causing your element to re-render.

Variables

Variable Description
useVal