# @nicer-toolbox/use-debounce

> debounce a usestate value

Latest version **1.0.1** (published 2020-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nicer-toolbox/use-debounce
pnpm add @nicer-toolbox/use-debounce
yarn add @nicer-toolbox/use-debounce
bun add @nicer-toolbox/use-debounce
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-09-02 |
| First published | 2020-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | maks112v |
| Maintainers | maks112v |
| Keywords | debounce, useState, react |

## Links

- npm: https://www.npmjs.com/package/@nicer-toolbox/use-debounce
- Repository: https://github.com/maks112v/use-debounce
- Homepage: https://github.com/maks112v/use-debounce#readme
- Issues: https://github.com/maks112v/use-debounce/issues
- npm.io page: https://npm.io/package/@nicer-toolbox/use-debounce

## 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.1 (latest) — 2020-09-02
- 1.0.0 — 2020-09-02

## README

# Nicer Toolbox

## Use Debounce

Debounce a react useState value

[![NPM](https://img.shields.io/npm/v/@nicer-toolbox/use-debounce.svg)](https://www.npmjs.com/package/@nicer-toolbox/use-debounce) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Usage

```jsx
function App() {
  const [count, setCount] = useState(0)
  const delayedValue = useDebounce(value, 3000)

  return (
    <div className='App'>
      <h1>Counter</h1>
      <p>Current count: {value}</p>
      <p>Debounce count: {delayedValue}</p>
      <button onClick={() => setCount(count + 1)}>Increment</button>
    </div>
  )
}
```

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