umijs / hooks
- воскресенье, 16 февраля 2020 г. в 00:21:38
TypeScript
React Hooks Library
English | 简体中文
React Hooks Library.
You can use umi hooks anywhere, with any component library. Although our examples are based on ant design, it does not mean that our Hooks can only be used with ant design.
npm i @umijs/hooks --save
import { useAsync } from '@umijs/hooks';
$ git clone git@github.com:umijs/hooks.git
$ cd hooks
$ npm run init
$ npm start
Open your browser and visit http://127.0.0.1:8001 , see more at Development.
We welcome all contributions, please read our CONTRIBUTING.MD first, let's build a better hooks library together.