import React from "react"; import YouTube from "react-youtube"; function YoutubeC({ videoId, navigate }) { const [player, setPlayer] = React.useState(null); const handleClick = () => { console.log("Clicked"); if (player) { player.seekTo(120); player.pauseVideo(); console.log("Seeking to 120"); } }; const onPlayerReady = (event) => { setPlayer(event.target); console.log("Player is ready"); }; return (

Youtube Video

); } export default YoutubeC;