alibaba/hooks
alibaba/hooks has 14,976 GitHub stars and 2,760 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-07 11:27 UTC. Last push 2026-10-27.
A high-quality & reliable React Hooks library. https://alibaba.github.io/hooks/
What you can do
- Easy to learn and use
- 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
Measured star growth
- in 24h
- +1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original📚 Documentation
Notice
use-url-stateis 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
🤝 Contributing
$ git clone [email protected]: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:
👥 Discuss
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,715 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,253 starsreact/react
The library for web and native user interfaces.
252,362 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,631 stars