ahooks is a collection of React Hooks for common functionalities and utilities. It provides a set of ready-to-use hooks that can help developers build React applications more efficiently. While ahooks offers a variety of useful hooks, there are other libraries in the React ecosystem that also provide similar hook collections. Here are a few alternatives:
Check out this comparison: Comparing ahooks vs react-hooks vs react-use.
$ npm install --save ahooks
# or
$ yarn add ahooks
# or
$ pnpm add ahooks
# or
$ bun add ahooks
import { useRequest } from 'ahooks';
$ 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: