title: Reactjs call componentWillMount of parent component
body: <p>I have two components as below:</p>
  
  <pre><code>class Parent
  {
    componentWillMount () {
      console.log('parent componentWillMount');
    }
  }
  
  class Child extends Parent
  {
    componentWillMount () {
      console.log('child componentWillMount');
    }
  }
  </code></pre>
  
  <p>But when the child component is loaded the componentWillMount method of the parent component is not loaded automatically. How do you call componentWillMount method of the parent component ?</p>
  
  <p>Thanks</p>