# react-hooks-extension

> The extension of react hooks

Latest version **1.1.1** (published 2025-07-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-hooks-extension
pnpm add react-hooks-extension
yarn add react-hooks-extension
bun add react-hooks-extension
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2025-07-17 |
| First published | 2022-11-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | BooYeu - llr |
| Maintainers | liulirui |
| Keywords | react, react-hooks, react-hooks-extension |

## Links

- npm: https://www.npmjs.com/package/react-hooks-extension
- Repository: https://github.com/BooYeu/react-hooks-extension
- Homepage: https://github.com/BooYeu/react-hooks-extension#readme
- Issues: https://github.com/BooYeu/react-hooks-extension/issues
- npm.io page: https://npm.io/package/react-hooks-extension

## 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.1.1 (latest) — 2025-07-17
- 1.1.0 — 2025-01-01
- 1.0.2 — 2024-01-22
- 1.0.1 — 2023-09-26
- 1.0.0 — 2023-05-17
- 0.0.6 — 2023-02-02
- 0.0.5 — 2023-02-01
- 0.0.4 — 2023-01-29
- 0.0.3 — 2023-01-28
- 0.0.2 — 2022-11-07
- 0.0.1 — 2022-11-07

## README

# react-hooks-extension [![Monthly download](https://img.shields.io/npm/dm/react-hooks-extension.svg)](https://img.shields.io/npm/dm/react-hooks-extension.svg) [![Total downloads](https://img.shields.io/npm/dt/react-hooks-extension.svg)](https://img.shields.io/npm/dt/react-hooks-extension.svg)

## Install

```bash
npm install react-hooks-extension --save
```

## Usage

```javascript
import {useStateRef, useReducerRef, useDebounce, useStateDebounce} from 'react-hooks-extension';

const [state, setState, stateRef] = useStateRef('init value');
const [data, dataDispatch, dataRef] = useReducerRef((prevData, action) => {}, {data: 'init value'});
const delayFunction = useDebounce(
    useCallback(() => {
        // do something delay
    }, []),
    2000,
    useCallback(() => {
        // do something first
    }, []),
);
const [keywords, setKeywords, keywordsDelay, setKeywordsDelay] = useStateDebounce('', 2000);
```

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