Today we’re going to learn how we can add a YouTube video in React.

The first thing we need to do is to add this dependency:
npm install react-youtube --save
Once installed, let’s create the component responsible for opening the YouTube video.
We’ll call it YoutubePlayer.tsx
You can customize the options by adding playerVars: reference.
And this is the result:

