Reactjs – useNavigate() may be used only in the context of a <Router> component. react-router-dom version 6.12.0
useNavigate() may be used only in the context of a <Router> component. react-router-dom version is ^6.12.0. As shown above in attached image, we have a problem. What do you recommend to do?** Header Merchant button on navbar is not working…