08 / 14

Implement Data mode of routing?

Routes are configured as the first argument to createBrowserRouter. At a minimum, you need a path and component:

In your main.js file create a router object using the BrowserRouter function
Render the <RouterProvider> in root component
  1. 1

    Put the outlet in app.js <Outlet/>

  2. 2

    Create a Navbar with all the routes