title: How to make a Youtube player popout and play a video?
body: <p>I have a YouTube player which plays a video using the YouTube API, The problem is that it redirects to another page and then starts playing the video.</p>
  
  <p>How do i make the player pop-out on the same page at the click of an image and then start playing the video?</p>
  
  <pre><code>&lt;a href="play/"&gt;&lt;img src="image" alt="button-img" /&gt;&lt;/a&gt;
  
  //play is the route where YouTube player component is present.
  </code></pre>