An open API service indexing awesome lists of open source software.

https://github.com/lonelyclick/react-loading-bar

React Loading Bar
https://github.com/lonelyclick/react-loading-bar

react react-loading react-loading-bar react-progress-bar

Last synced: 5 days ago
JSON representation

React Loading Bar

Awesome Lists containing this project

README

          

# React Loading Bar

[![Build Status](https://travis-ci.org/lonelyclick/react-loading-bar.svg?branch=master)](https://travis-ci.org/lonelyclick/react-loading-bar)

## Usage

```
npm install react-loading-bar --save
```

```
import React, { Component } from 'react'
import Loading from 'react-loading-bar'
import 'react-loading-bar/dist/index.css'

export default class LoadingExample extends Component {
state = {
show: false
}

onShow = ()=> {
this.setState({ show: true })
}

onHide = ()=> {
this.setState({ show: false })
}

render() {
return (



show


hide


)
}
}
```

Support UMD

## Demo

[React Loading Bar Example](http://lonelyclick.github.io/examples/loadingbar.html "react-loading-bar")

## Option Change

```

```

If change set `false`, will do nothing, default `true`

## License

MIT