This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react" | |
import { Helmet } from "react-helmet" | |
// Lazy loads a YouTube video by showing the thumbnail | |
// as a facade. | |
// | |
// Inspired by: @justinribeiro/lite-youtube | |
// | |
const YouTubeVideo = ({ videoId, title }) => { | |
const [connectionsLoaded, setConnectionsLoaded] = useState(false) |