node package manager

react-loadings

ReactLoading

react version

Usage.

First, import the react-loading stylesheet:

  <link rel="stylesheet" href="dist/stylesheet/react-loading.css" />

then, import the react-loading jsx file:

  import React from 'react';
  import ReactDOM from 'react-dom';
  import ReactLoading from 'ReactLoading.jsx';
  
  ReactDOM.render(<ReactLoading message={'kiri'} backdrop={true} />, document.getElementById('react-loading'));

API

message
type: String | Object
default: 'Loading'

backdrop
type: Boolean
default: true

position
type: Object
default: null

className
type: String | Object default: null