1.0.2 • Published 2 years ago

@pruthvi21/use-debounce v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

use-debounce

A Small React hook that implements debouncing in react.

Usage

const someFunction= () => any
const delay = 1000 // delay in ms

const debouncedFunction= useDebounce(delay,someFunction)

debouncedFunction() // Calls it only once after the delay regardless of number of calls

What's Debouncing?

I'd suggest you go through this blog

Simpler TL;DR image explaination:

Image_Explaination

1.0.2

2 years ago

1.0.1

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago