
React Router V7
Helps Claude work with React Router v7's data-driven routing patterns, including loaders, actions, and the router setup itself. The skill triggers on key imports like createBrowserRouter, useLoaderData, and useFetcher, so Claude knows to reference the documented patterns. What's useful here are the decision gates that walk through Form vs fetcher and loader vs useEffect choices in sequence, which mirrors how you actually think through these decisions when building. Covers both framework mode with the Vite plugin and the lower-level data router API. Good for anyone moving to v7's data patterns or just tired of explaining when to use which routing primitive.
- skills.sh installs
- 577
- GitHub stars
- 87
- last updated
- Aug 21, 2026
Install
$ npx -y skills add existential-birds/beagle --skill react-router-v7 --agent claude-codeInstalls into .claude/skills of the current project.
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):
// routes.ts
import { index, route } from "@react-router/dev/routes";
export default [
index("./home.tsx"),
route("products/:pid", "./product.tsx"),
];
Route Configuration
Nested Routes with Outlets
createBrowserRouter([
{
path: "/dashboard",
Component: Dashboard,
children: [
{ index: true, Component: DashboardHome },
{ path: "settings", Component: Settings },
],
},
]);
function Dashboard() {
return (
<div>
<h1>Dashboard</h1>
<Outlet /> {/* Renders child routes */}
</div>
);
}
Dynamic Segments and Splats
Sponsors
Details
- Repository
- github.com/existential-birds/beagle
- Category
- Frontend Development
- First seen
- Jun 3, 2026
More from existential-birds/beagle
All 40- React Flow Architecture536
- Vitest Testing471
- Docling431
- Fastapi Code Review387
- React Flow Implementation374
- Shadcn Ui356
- React Flow Code Review324
- Langgraph Architecture282
- Swiftui Code Review273
- Tutorial Docs271
- Bubbletea Code Review265
- Zustand State258
- Adr Writing250
- Dagre React Flow247
- Swift Code Review247
- Pytest Code Review232
- Sqlalchemy Code Review225
- Pydantic Ai Common Pitfalls221
- Pydantic Ai Agent Creation219
- Agent Architecture Analysis217
- Ai Elements209
- Go Code Review204
- Shadcn Code Review204
- Swift Testing Code Review194