I am making a React app with 2 menu items Home and Find(two different urls). Home consists of sub tabs - a, b, c and Find consists of d, e, f. I am working on tab 'b' from Home and navigated to find page to look something, now when I click on the Home menu on the top, I am no longer in tab 'b'. How do I remember the previous path in react hooks any help or clue?