Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useLayoutEffect

Accepts a function that contains imperative, possibly effectful code. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, after all DOM mutations but before the browser has a chance to paint. Prefer the standard useEffect hook when possible to avoid blocking visual updates.

function useLayoutEffect(effect: EffectCallback, inputs?: Inputs): void;
§
useLayoutEffect(effect: EffectCallback, inputs?: Inputs): void
[src]

§Parameters

§
effect: EffectCallback
[src]

Imperative function that can return a cleanup function

§
inputs?: Inputs optional
[src]

If present, effect will only activate if the values in the list change (using ===).

§Return Type