react-loadings

Loading component for React.

Usage no npm install needed!

<script type="module">
  import reactLoadings from 'https://cdn.skypack.dev/react-loadings';
</script>

README

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