UNPKG

@react-awesome/use-debounce

Version:

useDebounce debounces the state value.

33 lines (23 loc) 1.24 kB
# @react-awesome/use-debounce <p align="center"> <img alt="version" src="https://img.shields.io/npm/v/%40react-awesome%2Fuse-debounce" /> <img alt="coverage" src="https://img.shields.io/codecov/c/github/trinhthinh388/react-awesome-components/master?token=VQ8VJ7OECQ&flag=use-debounce" /> <img alt="license" src="https://img.shields.io/github/license/trinhthinh388/react-awesome-components" /> <img alt="build status" src="https://img.shields.io/github/actions/workflow/status/trinhthinh388/react-awesome-components/release.yml" /> <img alt="size" src="https://img.shields.io/bundlejs/size/%40react-awesome/use-debounce" /> </p> **use-debounce** tracks the previous value of a variable. Please refer to the [documentation](https://react-awesome-components.vercel.app/docs/use-debounce) for more information. ## Installation ```sh yarn add @react-awesome/use-debounce # or npm i @react-awesome/use-debounce ``` ## Contribution Yes please! See the [contributing guidelines](https://github.com/trinhthinh388/react-awesome-components/blob/master/CONTRIBUTING.md) for details. ## Licence This project is licensed under the terms of the [MIT license](https://github.com/trinhthinh388/react-awesome-components/blob/master/LICENSE).