useIsomorphicLayoutEffect
useIsomorphicLayoutEffect(effect: EffectCallback,deps: DependencyList): void
Accepts a function that contains imperative, possibly effectful code.
Properties
(Mandatory properties are in bold)| Properties | Type | Description |
|---|---|---|
| effect | EffectCallback | Imperative function that can return a cleanup function |
Additional properties for advanced use cases
| Properties | Type | Description |
|---|---|---|
| deps | DependencyList | If present, effect will only activate if the values in the list change. |