# react-ajaxing

> tell the component ajax is sending

Latest version **0.1.1** (published 2016-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-ajaxing
pnpm add react-ajaxing
yarn add react-ajaxing
bun add react-ajaxing
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-07-24 |
| First published | 2015-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Bingo Yang |
| Maintainers | blackbing |
| Keywords | react, react-component, ajaxing, spinner |

## Links

- npm: https://www.npmjs.com/package/react-ajaxing
- Repository: https://github.com/blackbing/react-ajaxing
- Issues: https://github.com/blackbing/react-ajaxing/issues
- npm.io page: https://npm.io/package/react-ajaxing

## Dependencies (2)

- [cssify](https://npm.io/package/cssify.md) ^0.7.0
- [object-assign](https://npm.io/package/object-assign.md) ^3.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-07-24
- 0.1.0 — 2016-07-24
- 0.0.7 — 2015-07-19
- 0.0.6 — 2015-07-16
- 0.0.5 — 2015-07-16
- 0.0.4 — 2015-07-15
- 0.0.3 — 2015-07-15
- 0.0.2 — 2015-07-14
- 0.0.1 — 2015-07-14

## README

# react-ajaxing
tell the component ajax is sending

[![react-ajaxing](http://i.imgur.com/A3PPhCY.gif)](http://i.imgur.com/A3PPhCY.gif)


# Install


```shell
npm install react-ajaxing
```

# Usage

```jsx
var Spinner = require('react-ajaxing');

//...

login: function(){
  this.setState({
    loading: true
  });
  this.setTimeout( ()=>{
    this.setState({
      loading: false
    });
  }, 1500);
},

render: function(){
  return (
    <button type ="submit" onClick={@login}>
      <Spinner loading={@state.loading} size={20} color="red"><span>Login</span></Spinner>
    </button>
  )
}
```

# Options

#### loading(boolean): Required
indicate it is loading status or not

#### size(number): Optional
spinner size(px)
default: 20

#### color(string): Optional
spinner color
default: '#FFF'

---
_Source: https://npm.io/package/react-ajaxing · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
