Loading tutorials
app/ directory and a `4 min readcreate-react-router, so app/root.tsx already exists. It also assumes you know React components, JSX, and the basics of an HTML document (html, head, body). Route config was covered earlier. Here you will look at the one route that every URL pass3 min readapp/routes.ts file. You should know how route and index map a URL to a route module. Here you will learn how routes nest, how a parent renders its child with Outlet, and how 3 min readapp/routes.ts and understand nested routes with Outlet. You should know the HTTP basics behind a normal link click.4 min readloader, how that data reaches your component, and the mistakes that most often cause trouble. It assumes you know React components and hooks, TypeScript basics, and HTTP status codes. It also assumes you have a project with a w4 min readloader and a default component, and have an app/routes.ts file like the one from the earlier chapters. You will learn how React Router generates types for each route, how to use them, and which errors come up most of4 min read.server naming convention protects secrets, and which mi4 min readloader and how app/routes.ts maps paths to files. It also assumes you are comfortable with HTML forms, FormData, and HTTP status codes. Here you will learn how an action receives a submission, how Form sends it, and what React Rout4 min readaction validates form input and sends errors back to the user. It assumes you know React hooks, TypeScript basics, HTTP status codes, and the FormData API. It also assumes you have read the chapter on actions and Form.4 min readErrorBoundary, and how to choose where the 5 min readuseNavigation. You should be comfortable with Form, request.formData(), and the fact that a successful action makes React Router revalidate (rerun) the loaders on the page.4 min readapp/routes.ts and a root route, and that you know how loaders return data to components. You will learn how each route sets its own <title>, meta tags, and stylesheets, and how React Router merges them as the URL changes.3 min readloader and action exports from earlier chapters, and the .server.ts convention for server-only modules.3 min readAwait and Suspense. It assumes you know how loaders and loaderData work, can read a route module, and understand promises and async/await in TypeScript. It also assumes you know basic Rea4 min readloader and action functions work in framework mode, how route modules are wired in app/routes.ts, and the basics of localStorage and Map. It covers the browser-side counterparts, clientLoader and clientAction, and the HydrateFallback export th4 min readapp/routes.ts, write a loader and an action, and know the difference between code that runs on a server and code that runs in a browser. You choose how your app is rendered with two settings in react-router.config.ts: ssr and prerender. The route modules you3 min readapp/routes.ts, loaders, actions, and cookie sessions, and that you know basic npm scripts and environment variables. It covers what react-router build produces, how to run it, how to configure it for your host, and the mistakes that3 min read