title: React Error: Target Container is not a DOM Element
body: <p>I just got started using React, so this is probably a very simple mistake, but here we go. My html code is very simple:</p>
  <pre><code>&lt;!-- base.html --&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Note Cards&lt;/title&gt;
      &lt;script src=&quot;http://&lt;url&gt;/react-0.11.2.js&quot;&gt;&lt;/script&gt;
  &lt;!--     &lt;script src=&quot;http://&lt;url&gt;/JSXTransformer-0.11.2.js&quot;&gt;&lt;/script&gt; --&gt;
      &lt;script src=&quot;http://code.jquery.com/jquery-1.10.0.min.js&quot;&gt;&lt;/script&gt;
      {% load staticfiles %}
      &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;{% static &quot;css/style.css&quot; %}&quot;&gt;
      &lt;script src=&quot;{% static &quot;build/react.js&quot; %}&quot;&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1 id=&quot;content&quot;&gt;Note Cards&lt;/h1&gt;
      &lt;div class=&quot;gotcha&quot;&gt;&lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Note that I am using Django's load static files here. (My JavaScript is a bit more complex, so  I won't post it all here unless someone requests it.) This is the line with the error:</p>
  <pre><code>React.renderComponent(
    CardBox({url: &quot;/cards/?format=json&quot;, pollInterval: 2000}),
    document.getElementById(&quot;content&quot;)
  );
  </code></pre>
  <p>After which I get the 'target container is not a DOM element error' yet it seems that document.getElementById(&quot;content&quot;) is almost certainly a DOM element.</p>
  <p>I looked at <a href="https://stackoverflow.com/questions/23941213/react-backbone-target-container-is-not-a-dom-element">this</a> stackoverflow post, but it didn't seem to help in my situation.</p>
  <p>Anyone have any idea why I'd be getting that error?</p>