useDebounce
Returns a debounced value of the provided value.
Installation
Install the custom hook from your command line.
npm i @raddix/use-debounce
Usage
API
Parameters
| Parameters | Description | Required | Type |
|---|---|---|---|
| value | The value you want to bounce. | Yes | any |
| delay | The delay time in milliseconds. | No | number |
Returns
| Returns | Description | Type |
|---|---|---|
| debouncedValue | The debounce value. After the delay time has elapsed without the value changing, it will be updated to the most recent value. | any |