useEffect for componentWillReceiveProps code example
Example: componentwillreceiveprops hooks
SomeComponent (props) => {
useEffect( () => {
console.log('someProp updated');
}, [props.someProp])
return <div>Hi {props.someProp}</div>
}