UNPKG

@rooks/use-debounce

Version:
31 lines (20 loc) 792 B
# @rooks/use-debounce ### Debounce hook for react ![Build Status](https://github.com/imbhargav5/rooks/workflows/Node%20CI/badge.svg)![](https://img.shields.io/npm/v/@rooks/use-debounce/latest.svg) ![](https://img.shields.io/npm/l/@rooks/use-debounce.svg) ![](https://img.shields.io/bundlephobia/min/@rooks/use-debounce.svg) ![](https://img.shields.io/david/imbhargav5/rooks.svg?path=packages%2Fdebounce) <a href="https://spectrum.chat/rooks"><img src="https://withspectrum.github.io/badge/badge.svg" alt="Join the community on Spectrum"/></a> ### Installation ``` npm install --save @rooks/use-debounce ``` ### Importing the hook ```javascript import useDebounce from "@rooks/use-debounce" ``` ### Usage ```jsx function Demo() { useDebounce(); return null } render(<Demo/>) ```