useEffect(() => {
return history.replace({
pathname: "path/A",
});
}, []);
useEffect(() => {
return history.replace({
pathname: "path/B",
});
}, []);
When the component unmounts, what will be the URL? What determines the order of execution of the above 2 useEffect?