TypeScript MIT

hooks

A high-quality & reliable React Hooks library. https://alibaba.github.io/hooks/

A

alibaba

Dernière activité 22 sept. 2026
alibaba/hooks

15 k

étoiles

2,8 k

forks

130

issues ouvertes

ahookshooks-libraryreactreact-hooksumi-hooks

Ce README est souvent en anglais.

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

Notice

use-url-state is now published as @ahooks.js/use-url-state.

If you are installing or upgrading this package, please use the new package name.

✨ 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

ahooks discussion group 1 ahooks discussion group 2 ahooks discussion group 3

Projets similaires

React hook library, ready to use, written in Typescript.

TypeScripthookhooksmdx
Jjuliencrn
7,9 k étoiles456

🔥 A collection of beautiful and (hopefully) useful React hooks to speed-up your components and hooks development 🔥

JavaScriptcustom-hooksfront-endhooks
Aantonioru
8,3 k étoiles580

🌌 reactuse the largest and most useful hook library

TypeScripthooksreactreact-hooks
Ssiberiacancode
566 étoiles80