I am using react-router for clicking button and opening different component in new tab button things are happening opposite means before clicking on that button that content is showing in the existing page without clicking that button and after clicking the button same content is showing as it is like first component for more insights check my code screenshot and output also
can anyone help me with this








