import { useLayoutEffect } from "https://deno.land/x/fathym_atomic_design_kit@v0.0.114/src/src.deps.ts";
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.