mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
添加react组件demo
This commit is contained in:
1 parent
283baaa68f
commit
bf1620acbc
4 files changed
+9
-21
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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