# @arcblock/react-hooks

> React hooks used by arcblock products

Latest version **3.5.4** (published 2026-06-13) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @arcblock/react-hooks
pnpm add @arcblock/react-hooks
yarn add @arcblock/react-hooks
bun add @arcblock/react-hooks
```

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 3.5.4 |
| Published | 2026-06-13 |
| First published | 2019-05-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wangshijun |
| Maintainers | wangshijun, polunzh, mave99a, gxw |
| Keywords | react, arcblock, component |

## Links

- npm: https://www.npmjs.com/package/@arcblock/react-hooks
- Repository: https://github.com/ArcBlock/ux
- Homepage: https://github.com/ArcBlock/ux#readme
- Issues: https://github.com/ArcBlock/ux/issues
- npm.io page: https://npm.io/package/@arcblock/react-hooks

## Dependencies (2)

- [ismobilejs](https://npm.io/package/ismobilejs.md) ^1.1.1
- [event-target-shim](https://npm.io/package/event-target-shim.md) ^5.0.1

## 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

- 3.5.4 (latest) — 2026-06-13
- 3.5.3 — 2026-04-24
- 3.5.2 — 2026-02-10
- 3.5.1 — 2026-02-09
- 3.5.0 — 2026-02-03
- 3.4.15 — 2026-02-03
- 3.4.14 — 2026-01-29
- 3.4.13 — 2026-01-29
- 3.4.12 — 2026-01-27
- 3.4.11 — 2026-01-27
- 3.4.10 — 2026-01-23
- 3.4.9 — 2026-01-23
- 3.4.8 — 2026-01-16
- 3.4.7 — 2026-01-12
- 3.4.6 — 2026-01-09
- … 1112 more at https://npm.io/package/@arcblock/react-hooks/versions

## README

![@arcblock/react-hooks](https://www.arcblock.io/.netlify/functions/badge/?text=react-hooks)

> DID UI components shared across arcblock products

## Usage

```shell
yarn add @arcblock/react-hooks
```

Then:

```javascript
import useInterval from '@arcblock/react-hooks/lib/useInterval';

useInterval(
  () => {
    // do something
  },
  condition ? 1000 : null
);
```

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