diff --git a/docs/guides/react.md b/docs/guides/react.md index 3c79f6170a..627aa57319 100644 --- a/docs/guides/react.md +++ b/docs/guides/react.md @@ -12,43 +12,55 @@ import "video.js/dist/video-js.css"; export const VideoJS = ( props ) => { const videoRef = React.useRef(null); - const { options } = props; + const playerRef = React.useRef(null); + const { options, onReady } = props; - // This separate functional component fixes the removal of the videoelement - // from the DOM when calling the dispose() method on a player - const VideoHtml = ( props ) => ( -