title: Why ReactJS ReactDom.render() doesn't render HTML tags?
body: <p>why this code below doesn't work?</p>
  
  <pre><code>ReactDOM.render( &lt;h1&gt;Hello&lt;/h1&gt;, document.getElementById('root'));
  </code></pre>
  
  <p>but this code works.</p>
  
  <pre><code>var elem = React.createElement('h1',{},"Hello");
  ReactDOM.render( elem, document.getElementById('root'));
  </code></pre>
  
  <p>Coming back to react after long time..trying looking into the web.. didn't found it deprecated ? then why its not working?</p>
  
  <p>Update: My browser console displays syntax error over here </p>
  
  <pre><code> ReactDOM.render( &lt;h1&gt;Hello&lt;/h1&gt;, document.getElementById('root'));
  </code></pre>
  
  <p>UPDATE: Thanks for the help everything worked by adding the following line</p>
  
  <pre><code>&lt;script type="text/babel"&gt;
  </code></pre>