# ahooks-v2

> react hooks library

Latest version **2.10.15** (published 2021-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install ahooks-v2
pnpm add ahooks-v2
yarn add ahooks-v2
bun add ahooks-v2
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.10.15 |
| Published | 2021-12-07 |
| First published | 2021-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=8.0.0 |
| Dependencies | 10 |
| Unpacked size | 414.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 14974 |
| Maintainers | fan576679268 |
| Keywords | ahooks, umi hooks, react hooks |

## Links

- npm: https://www.npmjs.com/package/ahooks-v2
- Repository: https://github.com/alibaba/hooks
- Issues: https://github.com/alibaba/hooks/issues
- npm.io page: https://npm.io/package/ahooks-v2

## Dependencies (10)

- [dayjs](https://npm.io/package/dayjs.md) ^1.9.1
- [js-cookie](https://npm.io/package/js-cookie.md) ^2.2.1
- [screenfull](https://npm.io/package/screenfull.md) ^5.0.0
- [lodash.isequal](https://npm.io/package/lodash.isequal.md) ^4.5.0
- [lodash.debounce](https://npm.io/package/lodash.debounce.md) ^4.0.8
- [lodash.throttle](https://npm.io/package/lodash.throttle.md) ^4.1.1
- [@types/js-cookie](https://npm.io/package/@types/js-cookie.md) ^2.2.6
- [@ahooksjs/use-request](https://npm.io/package/@ahooksjs/use-request.md) ^2.8.15
- [intersection-observer](https://npm.io/package/intersection-observer.md) ^0.7.0
- [resize-observer-polyfill](https://npm.io/package/resize-observer-polyfill.md) ^1.5.1

## Recent versions

- 2.10.15 (latest) — 2021-12-07
- 2.10.13 — 2021-11-10

## README

English | [简体中文](https://github.com/alibaba/hooks/blob/master/README.zh-CN.md)

# ahooks

React Hooks Library.

[![NPM version][image-1]][1] [![NPM downloads][image-2]][2]

> :warning: ahooks 3.0 is comming! welcome to try it <a href="https://ahooks-next.surge.sh/" target="_blank">https://ahooks-next.surge.sh/</a>

## 📚 Documentation

- [English](https://ahooks.js.org/)
- [中文](https://ahooks.js.org/zh-CN/)

## ✨ Features

- Easy to learn and use.
- Contains a wealth of advanced Hooks that are refined from the app.
- Contains a wealth of basic Hooks.
- Written in TypeScript with predictable static types.

## 📦 Install

```
npm i ahooks --save
```

## 🔨 Usage

```typescript
import { useRequest } from 'ahooks';
```

## Core Team

<table>
  <tbody>
    <tr>
      <td align="center">
        <a target="_blank" href="https://github.com/alibaba/ice">
          <img
            width="32"
            src="https://img.alicdn.com/tfs/TB1Jd.tb79l0K4jSZFKXXXFjpXa-482-264.png"
          />
          <br>
          <strong>ice</strong>
        </a>
      </td>
      <td align="center">
        <a target="_blank" href="https://github.com/umijs/umi">
          <img
            width="32"
            style="vertical-align: -0.32em; margin-right: 8px;"
            src="https://img.alicdn.com/tfs/TB1fhqaLAT2gK0jSZFkXXcIQFXa-132-130.png"
          />
          <br>
          <strong>umi</strong>
        </a>
      </td>
       <td align="center">
        <a target="_blank" href="https://www.alisports.com/">
          <img
            width="32"
            style="vertical-align: -0.32em; margin-right: 8px;"
            src="https://gw.alicdn.com/tfs/TB13XKjLuL2gK0jSZFmXXc7iXXa-205-59.png"
          />
          <br>
          <strong>Alisports</strong>
        </a>
      </td>
    </tr>
  </tbody>
</table>

## 🤝 Contributing

```
$ git clone git@github.com:alibaba/hooks.git
$ cd hooks
$ yarn run init
$ yarn start
```

Open your browser and visit http://127.0.0.1:8001 , see more at Development.

We welcome all contributions, please read our [CONTRIBUTING.MD](https://github.com/alibaba/hooks/blob/master/CONTRIBUTING.MD) first, let's build a better hooks library together.

## 👥 Discuss

<img src="https://user-images.githubusercontent.com/12526493/141303172-68f25577-c7b7-4ff7-bdff-25fd0f4d5214.JPG" width="300" />

## ✅ License

[MIT](https://github.com/alibaba/hooks/blob/master/LICENSE)

[1]: https://www.npmjs.com/package/ahooks
[2]: https://npmjs.org/package/ahooks
[image-1]: https://img.shields.io/npm/v/ahooks.svg?style=flat
[image-2]: https://img.shields.io/npm/dm/ahooks.svg?style=flat

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