Can I redirect multiple pages in React Js Navbar w/o triggering ‘useNavigate()’ error?
How to handle this error in react js Error: useNavigate() may be used only in the context of a <Router> component. ▶ 3 stack frames were collapsed. Navbar C:/Users/dell/OneDrive/Desktop/ReactJs/react-learning/src/components/Navbar.js:9 6 | import { Routes , Route , useNavigate} from "react-router-dom";…