添加react组件demo

This commit is contained in:
Harvey Zack committed 2019-04-15 17:33:44 +08:00
1 parent 283baaa68f
commit bf1620acbc
4 files changed
+9 -21

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ React Component for Artplayer, It is recommended to package itself according to
## Demo
[Checkout the demo](https://artplayer.org/react/) from Github Pages
[Checkout the demo](https://codesandbox.io/s/n74859y9rl) from Github Pages
## Install
+1 -1
View File
@@ -17,7 +17,7 @@ export default class ArtplayerComponent extends React.Component {
const { option, getInstance } = this.props;
this.instance = new Artplayer({
...option,
container: this.artRef,
container: this.artRef.current,
});
if (getInstance && typeof getInstance === 'function') {