Hello guys, I have small issue with react component, I have a route "/test1" in which there is a input and a button. On pressing the button the url will be changed to "/test2" but the same component will be rendered in the route "/test2" even. My actual problem is after typing something in the input and pressing button redirects url to "/test2" but the state of the component remanins same. All the component state is getting restored. But when I redirect to another route don't the current component has to unmount and mount new one ?? But in my case both old and new one are the same. Why is it restoring the state on redirecting to another uri ?