Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hooks

> 前端框架
Open source

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

15.0K stars0 likes1 views
WebsiteGitHub

About

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

📚 Documentation

  • English
  • 中文

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

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

🔨 Usage

typescript
import { useRequest } from "ahooks";

💻 Online Demo

🤝 Contributing

bash
$ 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

Issues· 131 open

View all issuesOpen on GitHub
  • #2965

    [useRequest] 3.10.0 typing regression:service 直接返回 promise.then(...) 时 data 被推断为 any

    Updated Sep 29, 2026
  • #2957

    use lodash-es replace lodash

    Updated Sep 3, 2026
  • #2579

    useInfiniteScroll 在第一次请求还未返回时,快速切换到其他组件,会造成无限循环的请求

    help wantedUpdated Aug 25, 2026
  • #2950

    useAntTable submit不能触发transform,我看了下源码是通过form.validateFields 实现获取表单值的,没办法触发,但是新的有api是validateFieldsReturnFormatValue能触发,什么时候修正下

    Updated Jul 23, 2026
  • #2948

    向上滚动无限加载use-infinite-scroll的源码内部缺少了对滚动原点的判断

    Updated Jul 20, 2026
  • #2945

    React Compiler safe?

    Updated Jun 29, 2026
  • #2943

    useRequest 使用 throttleWait 在支付宝小程序报错,版本是3.9.7

    Updated Jun 10, 2026
  • #2908

    [useRequest] 当通过 cacheKey 共享 promise 时,只有一个 loading 会变成 true,其余的 loading 还是 false

    Updated Jun 5, 2026
  • #2036

    `useDrop` child trigger avoidance does not work reliably

    Updated May 20, 2026
  • #2888

    use-url-state update "query-string": "9.3.1"

    Updated May 20, 2026

> Tags

TypeScriptahookshooks-libraryreactreact-hooks

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架