import * as netzo from "https://deno.land/x/netzo@0.3.66/deps/preact/hooks.ts";
Functions
Returns a memoized version of the callback that only changes if one of the | |
Returns the current context value, as given by the nearest context provider for the given context. When the provider updates, this Hook will trigger a rerender with the latest context value. | |
Customize the displayed value in the devtools panel. | |
Accepts a function that contains imperative, possibly effectful code. The effects run after browser paint, without blocking it. | |
Accepts a function that contains imperative, possibly effectful code.
Use this to read layout from the DOM and synchronously re-render.
Updates scheduled inside | |
Pass a factory function and an array of inputs. useMemo will only recompute the memoized value when one of the inputs has changed. This optimization helps to avoid expensive calculations on every render. If no array is provided, a new value will be computed whenever a new function instance is passed as the first argument. | |
An alternative to | |
| |
Returns a stateful value, and a function to update it. |