title: What will happen if I use setState() function in constructor of a Class in ReactJS or React Native?
body: <p>Out of curiosity, I just wanna know what will happen if I use <code>setState()</code> function in constructor of a Class in React Native or ReactJS?
  Such as:</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>constructor(props) {
    super(props);
    this.setState({title: 'new title'});
  }
  </code></pre>
  
  <p>what's the lifecycle of React gonna happen?</p>
  
  <hr>
  
  <p>I haven't read the code inside React. I am afraid it will some any damage when I write it that way.</p>