react-hooks
所属分类:Web3.0
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-10-03 20:51:48
上 传 者:
sh-1993
说明: 用于异步编程、web3等的有用React钩子集合,
(A collection of useful React hooks for async programming, web3, etc,)
文件列表:
.husky/ (0, 2023-10-03)
.husky/commit-msg (68, 2023-10-03)
CHANGELOG.md (3885, 2023-10-03)
lerna.json (171, 2023-10-03)
package.json (2031, 2023-10-03)
packages/ (0, 2023-10-03)
packages/async-task/ (0, 2023-10-03)
packages/async-task/CHANGELOG.md (555, 2023-10-03)
packages/async-task/LICENSE.md (1110, 2023-10-03)
packages/async-task/package.json (1028, 2023-10-03)
packages/async-task/src/ (0, 2023-10-03)
packages/async-task/src/index.ts (1021, 2023-10-03)
packages/async-task/tsconfig.json (286, 2023-10-03)
packages/async-value/ (0, 2023-10-03)
packages/async-value/CHANGELOG.md (393, 2023-10-03)
packages/async-value/LICENSE.md (1110, 2023-10-03)
packages/async-value/package.json (1028, 2023-10-03)
packages/async-value/src/ (0, 2023-10-03)
packages/async-value/src/index.ts (1136, 2023-10-03)
packages/async-value/tsconfig.json (286, 2023-10-03)
packages/contract-function/ (0, 2023-10-03)
packages/contract-function/CHANGELOG.md (2568, 2023-10-03)
packages/contract-function/LICENSE.md (1110, 2023-10-03)
packages/contract-function/package.json (1266, 2023-10-03)
packages/contract-function/src/ (0, 2023-10-03)
packages/contract-function/src/index.ts (2302, 2023-10-03)
packages/contract-function/tsconfig.json (317, 2023-10-03)
packages/progress/ (0, 2023-10-03)
packages/progress/CHANGELOG.md (2269, 2023-10-03)
packages/progress/LICENSE.md (1110, 2023-10-03)
packages/progress/package.json (1034, 2023-10-03)
packages/progress/src/ (0, 2023-10-03)
packages/progress/src/index.ts (1289, 2023-10-03)
packages/progress/tsconfig.json (286, 2023-10-03)
... ...
A collection of useful [React hooks](https://reactjs.org/docs/hooks-intro.html) for async programming and web3.
* [use-progress](./packages/progress/) - tracking the progress of a sequence of tasks.
* [use-async-task](./packages/async-task/) - performing async tasks with progress tracking.
* [use-async-value](./packages/async-value/) - for storing values which result from async calls.
* [use-contract-function](./packages/contract-function/) - for calling Ethereum contract functions with precise error handling and progress tracking.
## Development
_Note: This is a [PNPM monorepo](https://pnpm.io/workspaces). All code is in [Typescript](https://www.typescriptlang.org/)._
Run this after cloning the repo, to bootstrap the packages:
```shell
$ pnpm i
```
To build an individual package, e.g. `use-progress`:
```
$ cd packages/progress
$ pnpm build
```
You can also `watch` for changes and rebuild:
```
$ pnpm watch
```
### Publishing
To do a new release:
```shell
$ pnpm pre-release
$ pnpm release
```
近期下载者:
相关文件:
收藏者: