npm install react-lite-loaderA sample React loader.
Default behaviour
``jsx`

With an image
`jsx`


npm install --save react-lite-loader
`jsx
import React from 'react';
import Loader from 'react-lite-loader';
const sample =
const noAnimation = () => (
Retrieving data...
);
const complexChildren = () => (

);
const applyCssClasses =
`
The animation is in pure CSS, using @keyframes, you can check the browsers compability.
animation: boolean
Indicates if the loader content will be animated (fade in/out). Defaults to true.
animationDuration: string
The animation duration. Defaults to 1.5s.
className: string
The CSS classes you want to apply on the loader wrapper.
children: any
The content of the loading, could be either a sample text, an image, or nothing. Defaults to 'loading...'`
MIT © maddeveloper