Files
ArtPlayer/packages/artplayer-react/README.md
T
2019-04-15 13:16:15 +08:00

43 lines
671 B
Markdown

# artplayer-react
Artplayer React Component, It is recommended to package itself according to actual business needs.
## Demo
[Checkout the demo](https://artplayer.org/react/) from Github Pages
## Install
Install with `npm`
```
$ npm install artplayer-react
```
Or install with `yarn`
```
$ yarn add artplayer-react
```
## Usage
```js
import Artplayer from 'artplayer-react';
import 'artplayer/dist/artplayer.css';
// ...
<Artplayer
option={
{
// option, no 'container' property required
}
}
getInstance={ins => console.log(ins)} // get the instance
/>;
```
## License
MIT © [Harvey Zack](https://www.zhw-island.com/)