# use-debounce-hook

> useDebounce Hook

Latest version **1.0.3** (published 2021-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-debounce-hook
pnpm add use-debounce-hook
yarn add use-debounce-hook
bun add use-debounce-hook
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-01-16 |
| First published | 2021-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Fúlvio Cezar Canducci Dias |
| Maintainers | fulviocanducci |
| Keywords | react, debounce, hook |

## Links

- npm: https://www.npmjs.com/package/use-debounce-hook
- Repository: https://github.com/fulviocanducci/use-debounce
- npm.io page: https://npm.io/package/use-debounce-hook

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-01-16
- 1.0.2 — 2021-01-14
- 1.0.1 — 2021-01-14
- 1.0.0 — 2021-01-14

## README

# use-debounce-hook

![Node.js CI](https://github.com/fulviocanducci/use-debounce/workflows/Node.js%20CI/badge.svg) [![NPM](https://img.shields.io/npm/v/use-debounce-hook.svg)](https://www.npmjs.com/package/use-debounce-hook) [![npm](https://img.shields.io/npm/dt/use-debounce-hook?style=plastic)](https://www.npmjs.com/package/use-debounce-hook) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save use-debounce-hook
```

## Usage

```tsx
import React, { useState } from 'react';
import { useDebounce } from 'use-debounce';

const App = () => {
  const [value, setValue] = useState('');
  const text = useDebounce(value);
  //ou const text = useDebounce(value, 1000); timeout configuration
  return (
    <div>
      <div>
        <input
          type="text"
          value={value}
          onChange={(e) => setValue(e.target.value)}
        />
      </div>
      <div>{text}</div>
    </div>
  );
};
export default App;
```

## License

MIT © [fulviocanducci](https://github.com/fulviocanducci)

---

## Example on-line

[useDebounce example on-line](https://fulviocanducci.github.io/use-debounce/)

---

This hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).

---
_Source: https://npm.io/package/use-debounce-hook · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
