useEventCallback
Returns a memoized callback that remains stable across renders.
useEventCallback
Installation
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. |