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