React Route
React-specific route APIs for creating type-safe routes with components, hooks, and data loading.createRoute
Create a standard route with React components.createRootRoute
Create the root route for your application.createRootRouteWithContext
Create a root route with typed context.createFileRoute
Create a route from a file-based routing setup.Route Options (React)
All options from core Route API plus React-specific options.() => JSX.Element
React component to render for this route.
({ error, reset }) => JSX.Element
Component to render when an error occurs.
() => JSX.Element
Component to render while loading.
() => JSX.Element
Component to render when no child route matches.