useUpdateLayoutEffect

A React Hook like React.useLayoutEffect, but ignore the first invocation on mount, and use useIsomorphicLayoutEffect under the hood to support Server-side Rendering (SSR).

Demo

Source
Count:
0

Usage

See API for more details.

Source

Click links below to view source on GitHub.

API

useUpdateLayoutEffect(callback, Deps)

Callback

Same as React.useLayoutEffect.

Deps

Same as React.useLayoutEffect.