添加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
@@ -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') {