ahooks

react hooks library

ahooks downloads ahooks version ahooks license

ahooksSimilar Packages:

Npm Package Weekly Downloads Trend

3 Years
๐ŸŒŸ Show real-time usage chart on ahooks's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of ahooks](https://npm-compare.com/img/npm-trend/THREE_YEARS/ahooks.png)](https://npm-compare.com/ahooks#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

๐ŸŒŸ Show GitHub stars trend chart on ahooks's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of ahooks](https://npm-compare.com/img/github-trend/ahooks.png)](https://npm-compare.com/ahooks)

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
ahooks1,312,399-630 kB-5 days agoMIT

README for ahooks

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