title: How to set initial state with using ES6 class in React?
body: <p>I have created the below class</p>
  
  <pre><code>class App extends Component{
       render() {
           return (
               &lt;div className="app"&gt;&lt;/div&gt;
           );
       }
  }
  </code></pre>
  
  <p>How do i set initial state? <br> <code>getInitialState()</code> isn't working?
  what am i doing wrong? <br> The react docs are also not helping.</p>