ahooks
react hooks library
Last updated 2 years ago by taoweng .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install ahooks 
SYNC missed versions from official npm registry.

A high-quality & reliable React Hooks library.

NPM version NPM downloads npm npm Coverage Status gzip size Percentage of issues still open Average time to resolve an issue GitHub

English | įŽ€äŊ“中文

📚 Documentation

✨ Features

  • Easy to learn and use
  • Supports SSR
  • Special treatment for functions, avoid closure problems
  • Contains a large number of advanced Hooks that are refined from business scenarios
  • Contains a comprehensive collection of basic Hooks
  • Written in TypeScript with predictable static types

đŸ“Ļ Install

$ npm install --save ahooks
# or
$ yarn add ahooks
# or
$ pnpm add ahooks
# or
$ bun add ahooks

🔨 Usage

import { useRequest } from 'ahooks';

đŸ’ģ Online Demo

Edit demo for ahooks

🤝 Contributing

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

Open your browser and visit http://127.0.0.1:8000

We welcome all contributions, please read our CONTRIBUTING.MD first, let's build a better hooks library together.

Thanks to all the contributors:

contributors

đŸ‘Ĩ Discuss

Current Tags

  • 3.0.0-alpha.0                                ...           alpha (3 years ago)
  • 2.10.10-beta                                ...           beta (3 years ago)
  • 3.8.1                                ...           latest (3 months ago)
  • 3.0.0-alpha.18                                ...           next (3 years ago)

108 Versions

  • 3.8.1                                ...           3 months ago
  • 3.8.0                                ...           6 months ago
  • 3.7.11                                ...           7 months ago
  • 3.7.10                                ...           9 months ago
  • 3.7.9                                ...           10 months ago
  • 3.7.8                                ...           a year ago
  • 3.7.7                                ...           2 years ago
  • 3.7.6                                ...           2 years ago
  • 3.7.5                                ...           2 years ago
  • 3.7.4                                ...           2 years ago
  • 3.7.3                                ...           2 years ago
  • 3.7.2                                ...           2 years ago
  • 3.7.1                                ...           2 years ago
  • 3.7.0                                ...           2 years ago
  • 3.6.2                                ...           2 years ago
  • 3.5.2                                ...           2 years ago
  • 3.5.1                                ...           2 years ago
  • 3.5.0                                ...           2 years ago
  • 3.4.1                                ...           2 years ago
  • 3.4.0                                ...           2 years ago
  • 3.3.13                                ...           2 years ago
  • 3.3.12                                ...           2 years ago
  • 3.3.11                                ...           3 years ago
  • 3.3.10                                ...           3 years ago
  • 3.3.9                                ...           3 years ago
  • 3.3.8                                ...           3 years ago
  • 3.3.0                                ...           3 years ago
  • 3.2.0                                ...           3 years ago
  • 3.1.14                                ...           3 years ago
  • 3.1.13                                ...           3 years ago
  • 3.1.12                                ...           3 years ago
  • 3.1.11                                ...           3 years ago
  • 3.1.10                                ...           3 years ago
  • 3.1.9                                ...           3 years ago
  • 3.1.8                                ...           3 years ago
  • 3.1.7                                ...           3 years ago
  • 3.1.6                                ...           3 years ago
  • 3.1.5                                ...           3 years ago
  • 3.1.4                                ...           3 years ago
  • 3.1.3                                ...           3 years ago
  • 3.1.2                                ...           3 years ago
  • 3.1.1                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.8                                ...           3 years ago
  • 3.0.7                                ...           3 years ago
  • 3.0.6                                ...           3 years ago
  • 3.0.5                                ...           3 years ago
  • 3.0.3                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 3.0.0-alpha.18                                ...           3 years ago
  • 2.10.14                                ...           3 years ago
  • 3.0.0-alpha.17                                ...           3 years ago
  • 3.0.0-alpha.16                                ...           3 years ago
  • 3.0.0-alpha.15                                ...           3 years ago
  • 3.0.0-alpha.14                                ...           3 years ago
  • 3.0.0-alpha.13                                ...           3 years ago
  • 3.0.0-alpha.12                                ...           3 years ago
  • 3.0.0-alpha.11                                ...           3 years ago
  • 3.0.0-alpha.10                                ...           3 years ago
  • 3.0.0-alpha.9                                ...           3 years ago
  • 3.0.0-alpha.8                                ...           3 years ago
  • 3.0.0-alpha.7                                ...           3 years ago
  • 3.0.0-alpha.6                                ...           3 years ago
  • 3.0.0-alpha.5                                ...           3 years ago
  • 3.0.0-alpha.4                                ...           3 years ago
  • 3.0.0-alpha.3                                ...           3 years ago
  • 3.0.0-alpha.2                                ...           3 years ago
  • 2.10.12                                ...           3 years ago
  • 2.10.11                                ...           3 years ago
  • 2.10.10 [deprecated]           ...           3 years ago
  • 3.0.0-alpha.0                                ...           3 years ago
  • 2.10.10-beta                                ...           3 years ago
  • 2.10.9                                ...           3 years ago
  • 2.10.8                                ...           3 years ago
  • 2.10.7                                ...           3 years ago
  • 2.10.6                                ...           3 years ago
  • 2.10.5                                ...           3 years ago
  • 2.10.4                                ...           3 years ago
  • 2.10.3                                ...           4 years ago
  • 2.10.2                                ...           4 years ago
  • 2.10.1                                ...           4 years ago
  • 2.10.0                                ...           4 years ago
  • 2.9.6                                ...           4 years ago
  • 2.9.4                                ...           4 years ago
  • 2.9.3                                ...           4 years ago
  • 2.9.2                                ...           4 years ago
  • 2.9.1                                ...           4 years ago
  • 2.8.1                                ...           4 years ago
  • 2.8.0                                ...           4 years ago
  • 2.7.1                                ...           4 years ago
  • 2.7.0                                ...           4 years ago
  • 2.6.1                                ...           4 years ago
  • 2.6.0                                ...           4 years ago
  • 2.5.0                                ...           4 years ago
  • 2.4.0                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.2.0-beta                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.1-beta.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 1.0.0-beta.2                                ...           4 years ago
  • 0.0.1                                ...           5 years ago
Downloads
Total 6
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (8)
Dev Dependencies (9)

© 2010 - cnpmjs.org x YWFE | Home | YWFE