I have the below sample code using react-router and context hooks where I am trying to understand why it behaves differently when I use anchors instead of Link components. T