How can we identify props changes in functional component?. Sample code here. Can you please help me to convert this componentDidUpdate method to functional componet using useEffect or any other way.
componentDidUpdate(prevProps){
if(prevProps.props1 !== this.props.props1){
//1st Function call
}
if(prevProps.props2 !== this.props.props2){
//2nd Function call
}
}
//-----------------
useEffect(()=>{
},[props1, props2])