Skip to content
zenui/react-hooks

useEventCallback

Returns a function with a stable identity that always calls the latest version of your callback. Pass it to memoized children or effect dependencies without breaking memoization.

Level
Intermediate
Since
v2.1.0
import {useEventCallback} from '@zenuilabs/react-hooks';
Loading demo_

More in Utilities