Function useInsertionEffect

  • Parameters

    • effect: EffectCallback

      Imperative function that can return a cleanup function

    • Optional deps: DependencyList

      If present, effect will only activate if the values in the list change.

    Returns void