useIsomorphicLayoutEffect
React hook for using layout effect in both client-side and server-side rendering.
Installation
Example
Usage
Reference
Parameters
effect
: Function containing the code for the effect.
deps
: Optional array of dependencies.
Return Value
The return value is the same as useLayoutEffect
or useEffect
.
Links
use-isomorphic-layout-effect.ts