title: Call componentWillReceiveProps in componentWillMount?
body: <p>I am new to <code>react</code>, i want to call a <code>function</code> in another <code>function</code> for example i need to call <code>componentWillReceiveProps</code> in <code>componentWillMount</code> ? How to do that?</p>
  
  <pre><code>import React from 'react'
  class App extends React.Component {
    componentWillMount() {
      enter code here
    }
    componentWillReceiveProps(nextProps) {
      console.log(nextProps)
    }
    render() {
      return(
        &lt;div&gt;
          &lt;h&gt;hiiiiii&lt;/h1&gt;
        &lt;/div&gt;
    )}
  }
  </code></pre>