Lilact
    Preparing search index...

    Function useLayoutEffect

    • Runs an effect synchronously after all DOM mutations but before the browser paints.

      Parameters

      • effect: Function

        Effect callback.

      • Optionaldeps: any[] = undefined

        Optional dependency list (or an object for shallow comparison) used to determine when to re-run the effect.

      Returns void