1.0.2 • Published 4 years ago

@pruthvi21/use-debounce v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.1

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago