ComponentWillReceiveProps para componente funcional
useEffect(() => {
console.log('someProp updated');
}, [props.someProp])
Erezzor
useEffect(() => {
console.log('someProp updated');
}, [props.someProp])