hooks

(โ˜… 14,978)

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

  • .babelrc
  • .coveralls.yml
  • .editorconfig
  • .gitignore
  • .gitleaks.toml
  • .npmrc
  • .travis.yml
  • AGENTS.md
  • biome.json
  • CLAUDE.md
  • CONTRIBUTING.MD
  • CONTRIBUTING.zh-CN.MD
  • gulpfile.js
  • LICENSE
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • README.md
  • README.zh-CN.md
  • SECURITY.md
  • tsconfig.base.json
  • tsconfig.pro.json
  • umd.html
  • vitest.config.ts
  • webpack.common.ts

# Installation Guide

1. Get the code
git clone https://github.com/alibaba/hooks

Downloads the entire project code from GitHub to your computer.

cd hooks

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
$ npm install --save ahooks

Downloads and installs the libraries listed in package.json.

$ yarn add ahooks

Type this command into your terminal and run it.

$ pnpm add ahooks

Type this command into your terminal and run it.

$ pnpm run init

Type this command into your terminal and run it.

$ pnpm start

Starts the development/run server.

โœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

// repository documentation