title: Using Twitch Embedded Video with ReactJS
body: <p>I've been creating a personal project and trying to use the <a href="https://dev.twitch.tv/docs/embed#embedding-everything" rel="nofollow noreferrer">Twitch Embedded API</a> to display Twitch streams and the chat within my web page. I have some experience with ReactJS but I'm not sure how to handle this situation at the moment.</p>
  
  <p>Here is the HTML of how one would embed a twitch stream from the Twitch API docs:</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;!-- Add a placeholder for the Twitch embed --&gt;
      &lt;div id="twitch-embed"&gt;&lt;/div&gt;
  
      &lt;!-- Load the Twitch embed script --&gt;
      &lt;script src="https://embed.twitch.tv/embed/v1.js"&gt;&lt;/script&gt;
  
      &lt;!-- Create a Twitch.Embed object that will render within the "twitch-embed" root element. --&gt;
      &lt;script type="text/javascript"&gt;
        new Twitch.Embed("twitch-embed", {
          width: 854,
          height: 480,
          channel: "monstercat"
        });
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What is the best way to accomplish this while using React?</p>