Loading tutorials
createBrowserRouter and rendered with RouterProvider, as in the previous chapter.2 min readcreateBrowserRouter and RouterProvider. You should also know what a route object is. Here you will replace plain anchor tags with Link and NavLink so navigation stays inside the app.2 min readcreateBrowserRouter and RouterProvider. It also assumes you can write a basic route object with a path and an element. Here you will learn how nested routes share a layout, and how Outlet decides 2 min readOutlet. Two special routes round out a route tree: the index route, which fills a layout when no child path matches, and the splat route, which catches every other URL.2 min readcreateBrowserRouter, render links with Link and NavLink, and write React function components with hooks. It covers how one route can match many URLs and how a component reads the changing part of the URL.2 min read?, such as /products?sort=price&page=2. It suits state that a user should be able to bookmark or share, such as sort order, filters, and page number. This chapter assumes you can write React function components and hooks, and that you have a working ro2 min readLink, and the data router setup from earlier chapters.2 min readfetch with async/await, and have a router set up with createBrowserRouter and RouterProvider. It also assumes you know how to read dynamic segments with useParams.2 min readcreateBrowserRouter, and that you are comfortable with async/await, fetch, and the browser's FormData.2 min readForm, as covered in the earlier chapters. Here you will show feedback while the router works.2 min readcreateBrowserRouter, nest them with Outlet, and write a loader that fetches data. It builds on those pieces.2 min readcreateBrowserRouter, nest them under a layout with Outlet, and write a loader. Here you will use loaders to send unauthenticated users to a login page before a protected page renders.2 min readcreateBrowserRouter and RouterProvider work, and that you can read a route object. It covers the other two data routers and how to pick one.2 min readimport() does. You should also be comfortable with createBrowserRouter.2 min readcreateBrowserRouter, how loaders and errorElement work, and how to write a basic test with a runner such as Vitest or Jest and React Testing Library. It covers testing your route configuration without a real browser.2 min read