REACT ROUTER DOM LINK MESMO
useEffect(() => {
// do something
}, [props.match.params.id]);
Sunvi Wo
useEffect(() => {
// do something
}, [props.match.params.id]);
componentDidUpdate(prevProps) {
if(prevProps.match.params.id !== this.props.match.params.id){
// do something
}
}