Function: useIsomorphicLayoutEffect()
useIsomorphicLayoutEffect(
effect
,deps
?):void
Accepts a function that contains imperative, possibly effectful code.
Parameters
• effect: EffectCallback
Imperative function that can return a cleanup function
• deps?: DependencyList
If present, effect will only activate if the values in the list change.
Returns
void
Version
16.8.0
See
https://react.dev/reference/react/useEffect