mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 00:56:16 -08:00
添加react组件demo
This commit is contained in:
1 parent
283baaa68f
commit
bf1620acbc
4 files changed
+9
-21
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user