React Router V7
Practical React Router v7 guidance covering data-driven routing, loaders, actions, and mutation choices.
- CCM score
- 50 of 100
- skills.sh installs
- 580
- GitHub stars
- 91
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers route setup in data mode and framework mode, nested routes with
Outlet, and dynamic, optional, and splat segments - Includes decision gates for choosing
<Form>versususeFetcherandloaderversususeEffect, plus links to references on loaders, actions, navigation, and advanced topics - Provides a mode comparison table covering framework, data, and declarative routers across setup, type safety, SSR support, and use case
- Designed for React developers building SPAs or full-stack apps who need to pick the right routing and data-fetching API
Install
$ npx -y skills add existential-birds/beagle --skill react-router-v7 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React Router v7 Best Practices
Quick Reference
Router Setup (Data Mode):
import { createBrowserRouter, RouterProvider } from "react-router";
const router = createBrowserRouter([
{
path: "/",
Component: Root,
ErrorBoundary: RootErrorBoundary,
loader: rootLoader,
children: [
{ index: true, Component: Home },
{ path: "products/:productId", Component: Product, loader: productLoader },
],
},
]);
ReactDOM.createRoot(root).render(<RouterProvider router={router} />);
Framework Mode (Vite plugin):
// react-router.config.ts
import type { Config } from "@react-router/dev/config";
export default {
ssr: true,
} satisfies Config;
// app/routes.ts
import { index, route, type RouteConfig } from "@react-router/dev/routes";
export default [
index("./routes/home.tsx"),
route("products/:pid", "./routes/product.tsx"),
] satisfies RouteConfig;
Route Configuration
Nested Routes with Outlets
Details
- Repository
- github.com/existential-birds/beagle
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
More from existential-birds/beagle
All 37- React Flow Architecture544
- Vitest Testing473
- Fastapi Code Review394
- React Flow Implementation382
- Shadcn Ui359
- React Flow Code Review329
- Langgraph Architecture283
- Swiftui Code Review277
- Tutorial Docs273
- Bubbletea Code Review270
- Zustand State261
- Dagre React Flow257
- Adr Writing254
- Swift Code Review253
- Pytest Code Review240
- Sqlalchemy Code Review228
- Pydantic Ai Common Pitfalls221
- Agent Architecture Analysis220
- Pydantic Ai Agent Creation219
- Ai Elements211
- Go Code Review206
- Shadcn Code Review206
- Swift Testing Code Review196
- Deepagents Architecture162
Similar to React Router V7
More Frontend & UI Codereact-router-data-moderemix-run/agent-skills942 installsReference-driven React Router data mode guide covering loaders, actions, fetchers, and optimistic UI without the Vite plugin.
react-router-framework-moderemix-run/agent-skills3.8K installsSkill guide for React Router framework mode covering file-based routing, data loading, mutations, and rendering strategies.
frontend-react-router-best-practicessergiodxa/agent-skills406 installsReact Router data-loading, action, and route-organization rules with code examples for performance and architecture.
frontend-routingaj-geddes/useful-ai-prompts456 installsClient-side routing for React, Vue, and Angular apps with lazy loading and route protection.
tanstack-routertanstack-skills/tanstack-skills5.3K installsType-safe React and Solid router with file-based routes, validated search params, and built-in data loading.
nextjs-app-router-patternswshobson/agents34.7K installsComprehensive App Router patterns for Next.js 14+ covering Server Components, streaming, and data fetching.