useIsomorphicLayoutEffect ​
lifecycle
test coverage
Last changed: last month
Hook conditionally selects either `useLayoutEffect` or `useEffect` based on the environment
typescript
import { useIsomorphicLayoutEffect } from '@siberiacancode/reactuse';
Usage ​
typescript
useIsomorphicLayoutEffect(() => console.log('effect'), [])