title: Warning: Unknown DOM property class. Did you mean className?
body: <p>I've just started exploring React, by adding a component with a simple render function:</p>
  
  <pre><code>render() {
    return &lt;div class="myApp"&gt;&lt;/div&gt;
  }
  </code></pre>
  
  <p>When I run the app, I get the following error:</p>
  
  <pre><code>Warning: Unknown DOM property class. Did you mean className?
  </code></pre>
  
  <p>I can solve this by changing <code>class</code> to <code>className</code>.</p>
  
  <p>The question is; does React enforce this convention? Also why do I need to use <code>className</code> instead of the conventional <code>class</code>? If this is a restriction then is it due to JSX syntax or somewhere else?</p>