@auraxy/react-async-button
Version:
A button component of react, realizes the button auto-lock when it clicked and auto-unlock after the async action has done
33 lines (25 loc) • 1.32 kB
Markdown
# @auraxy/react-async-button
[](https://www.npmjs.com/package/@auraxy/react-async-button)
[](https://www.npmjs.com/package/@auraxy/react-async-button)



> `pkg.module supported`, which means that you can apply tree-shaking in you project
A button component of react, realizes the button auto-lock when it clicked and auto-unlock after the async action has done
## Installation
```bash
npm i -S @auraxy/react-async-button
```
## Global name
`ReactAsyncButton`
## Interface
See in [index.d.ts](./index.d.ts)
## Usage
```js
import * as ReactAsyncButton from '@auraxy/react-async-button'
```
Use in html, see what your can use in [CDN: unpkg](https://unpkg.com/@auraxy/react-async-button/lib/umd/)
```html
<-- use what you want -->
<script src="https://unpkg.com/@auraxy/react-async-button/lib/umd/<--module-->.js"></script>
```