useLayoutEffectOnce

A React Hook that like useEffectOnce but use useIsomorphicLayoutEffect under the hood.

Demo

Source
Count:
0

Usage

See API for more details.

Source

Click links below to view source on GitHub.

API

// alias to `useIsomorphicLayoutEffect(callback, [])` with more semantic name useLayoutEffectOnce(callback)

Callback

Same as React.useLayoutEffect.