Javascript – I'm using React-Router-Dom for page routes. I need to separate admin routes from public ones. Can you suggest a Solution?
I am using React-Router-Dom for page routes. I need to separate admin routes from public ones.Can anyone tell me how do i do it. App.js import { createBrowserRouter,RouterProvider } from "react-router-dom"; import HomePage from "./Pages/home"; import Contact from './Pages/contact'; import…