Content
useEventCallback
A hook that returns a memoized version of a callback that is stable between renders.
useEventCallback
Usage
API
useEventCallback
Returns a memoized version of the provided callback.
Parameters
Name | Type | Description |
---|---|---|
fn | T | The callback function that depends on external values. |
Returns
Name | Type | Description |
---|---|---|
fn | T | A stable version of the provided callback. |