# use-debounce-effect

> useEffect hook that debounces the effect

Latest version **1.0.0** (published 2021-07-14) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2021-07-14 |
| First published | 2021-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | bellawatt |
| Maintainers | brandonshar |

## Links

- npm: https://www.npmjs.com/package/use-debounce-effect
- Repository: https://github.com/bellawatt/use-debounce-effect
- Homepage: https://github.com/bellawatt/use-debounce-effect#readme
- Issues: https://github.com/bellawatt/use-debounce-effect/issues
- npm.io page: https://npm.io/package/use-debounce-effect

## Recent versions

- 1.0.0 (latest) — 2021-07-14

## README

# use-debounce-effect

> useEffect hook that debounces the effect

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

## Install

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

## Usage

```jsx
import React, { useState } from 'react'
import axios from 'axios';
import { useDebounceEffect } from '@bellawatt/react-hooks'

const DebounceEffectExample = () => {
  const [value, setValue] = useState('');

  useDebounceEffect(() => {
    someSlowFunction();
  }, 1000, [value]));

  return (
    <div>
      <input value={value} onChange={e => setValue(e.currentTarget.value)} />
    </div>
  )
}
```

## License

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

---

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

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