useIsomorphicLayoutEffect
Conditionally invokes useLayoutEffect on the server and useEffect on the client.
useIsomorphicLayoutEffect
Installation
Usage
API
useIsomorphicLayoutEffect
Parameters
Name | Type | Description |
---|---|---|
callback | EffectCallback | The function to execute on each render. |
deps? | any[] | An array of values that indicate when the effect should update. If none of the values change, the effect will not run. |