| ## Intro | |
| ahooks, pronounced [eɪ hʊks], is a high-quality and reliable React Hooks library. In the current React project development process, a set of easy-to-use React Hooks library is indispensable, hope ahooks can be your choice. | |
| ## 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 | |
| ```ts | |
| import { useRequest } from 'ahooks'; | |
| ``` | |
| ## Online Demo | |
| [](https://codesandbox.io/s/demo-for-ahooks-forked-fg79k?file=/src/App.js) | |