Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-ajaxing

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-ajaxing

tell the component ajax is sending

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

react-ajaxing

tell the component ajax is sending

react-ajaxing

Install

npm install react-ajaxing

Usage

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'

Keywords

FAQs

Package last updated on 24 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc