yangjiaxin1995 / react-hooks

react hooks

Home Page:https://hooks.xingkang.wang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@pansy/react-hooks

NPM version NPM downloads codecov license issues Percentage of issues still open Average time to resolve an issue

📚 文档

docs

✨ 特性

  • 📦 每个 Hook 单独发包,方便使用
  • 🌵 包含丰富的基础 Hooks
  • 💻 使用 TypeScript 编写,提供完善的类型定义

🏗 安装

// npm
npm install @pansy/react-hooks --save

// yarn
yarn add @pansy/react-hooks

// pnpm
pnpm install @pansy/react-hooks

注意 每个 Hook 单独发包,如只是用部分可单独安装对应的 Hook 包;

🔨 使用

import { useModal } from '@pansy/react-hooks';

// or
import { useModal } from '@pansy/use-modal';

🤝 参与共建

本仓库使用 pnpm 进行依赖管理,开发前请保证已安装

$ git clone git@github.com:pansyjs/react-hooks.git
$ cd react-hooks
$ pnpm install
$ pnpm start

如何创建一个Hook, 执行以下命令,会帮你创建基本的文件

pnpm run hooks:create

About

react hooks

https://hooks.xingkang.wang

License:MIT License


Languages

Language:TypeScript 99.3%Language:JavaScript 0.4%Language:Smarty 0.3%Language:Shell 0.0%