Next.js Discord

Discord Forum

Check if cityId points at a real resource (React Router Dom / Not Next.js)

Unanswered
Bumble bee posted this in #help-forum
Open in Discord
Avatar
Bumble beeOP
const router = createBrowserRouter([
  {
    path: '/',
    element: <App />
  },
  {
    path: '/cities/:cityId',
    element: <App displayActivities />
  }
])

I would like to check if the route really points at a real resource.

0 Replies