Javascript – How to access query parameters/search params in loader function in react router v6
I have a route configured like this: const router = createBrowserRouter([ { path: "/", element: <Layout />, children: [ { index: true, element: <Home /> }, { path: "contacts", element: <Contact /> }, { path: "info/:link", element: <FooterLinks /> },…