title: Dynamically insert script tag that will execute via Reactjs
body: <p>There are a bunch of answers on this, but I'm looking for something specific to reactjs</p>
  
  <p>My component code:  </p>
  
  <pre class="lang-js prettyprint-override"><code>  render: function () {
  
      return (
        &lt;Modal {...this.props} title="Embed on your own site!"&gt;
          &lt;div className="modal-body"&gt;
            &lt;div className="tm-embed-container" dangerouslySetInnerHTML={{__html: embedCode}}&gt;
            &lt;/div&gt;
            &lt;textarea className="tm-embed-code" rows="4" wrap="on" defaultValue={embedCode}&gt;&lt;/textarea&gt;
          &lt;/div&gt;
        &lt;/Modal&gt;
      );
    }
  });
  </code></pre>
  
  <p>The script tag is there on the page, but no execution. Should I go outside of react and just use good ol' DOM scripting as the other answers indicate?</p>