Loading tutorials
createBrowserRouter and RouterProvider. It covers what a route object is, how React Router turns a URL into a list of matching route4 min readcreateBrowserRouter and render them with RouterProvider. It also assumes you know what a nested route is. Here you will learn how Link and NavLink move the user between those routes without reloading the page, how relative paths resolve, and ho4 min readuseState and useEffect, and have already created a router with createBrowserRouter and RouterProvider. It also assumes you know how a route object's path and element work. Here you will learn how nes4 min readcreateBrowserRouter, and that you know how a parent route renders its children through <Outlet />. Here you will fill the two gaps that nested routes leave behind. The first is what a layout shows at its own URL. The second is what the app s5 min readcreateBrowserRouter and RouterProvider. You should also know how route objects and nested routes work. Here you will learn how to match a variable part of a URL and read it in your5 min read?, such as /products?sort=price&page=2. This chapter shows how to read it, update it, and keep it consistent with your UI. It assumes you can define routes with createBrowserRouter, render links, and read path params with useParams.4 min readcreateBrowserRouter, nest them with Outlet, and read params with useParams. It also assumes you know fetch and async/await. Here you will move data fetching out of useEffect and into the route definition.5 min readForm component, and see how the router revalidates loader data afterward. It assumes you know loaders and useLoaderData, route objects, redirect, and JavaScript fetch with async/await. It also as4 min readcreateBrowserRouter, write a loader, and write an action with Form. You should also be comfortable with React hooks and conditional rendering.4 min readcreateBrowserRouter, write loaders and actions, and use redirect. A protected route is a page that only signed-in users can see. Everyone else is sent to a login page. The chapter shows how to build that guard in the data router API, how to send us4 min readcreateBrowserRouter, createHashRouter, and createMemoryRouter. All three take the same route objects. They differ only in where the current location is stored. This chapter explains that difference, the deployment consequences5 min readcreateBrowserRouter, write route objects, and use loaders. You should also know what a dynamic import() is. Earlier chapters covered all of these.4 min readcreateBrowserRouter and RouterProvider, and you know what loaders, actions, and errorElement do. You also need a test runner (Jest or Vitest) and React Testing Library. The examples use Jest-style test, expect, and `afterEa4 min read