Loading spinner component for React
npm install react-loading-spinner> Loading spinner component for React
```
npm install -save react-loading-spinner
Show loading spinner when content is loading and show content when it is loaded.
`js`
spinner={Spinner}>
{this.props.content ? (
) : null}
You can also assign content as a prop:
`js`
See example
#### isLoading
It is the state of loading spinner, if `true` — show spinner, otherwise show content if it is exist.
#### spinner
Set react component, as a custom spinner. If it is not exist there will be default spinner.
#### loadingClassName
Style class name for loading wrapper. By default — `loadingContiner`
#### children`
Assign child component as a property.
MIT