title: Which lifecycle method to use when component is dependent on two props in React?
body: <p>Currently, in our project we are using <code>componentWillReceiveProps</code> method to process props.</p>
  <pre class="lang-js prettyprint-override"><code>componentWillReceiveProps(nextprops) {
     if(nextprops.userData != this.props.userData) {
        //...do something
     }
  }
  </code></pre>
  <p>Now, the issue here is that some other prop, <code>employeeData</code> is required in conjunction with <code>userData</code> to do something. Is there some way I can do it in here or maybe some other lifecycle method that will aid in doing this?</p>
  <p>Edit: I am using class components and cannot use functional components here.</p>