From hairyf-skills-4
Provides guidance on React Router v7 for routing, data loading, SSR, and SPA architectures. Covers modes, navigation, loaders, actions, hooks, and form handling.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hairyf-skills-4:react-routerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> The skill is based on React Router v7.13.0, generated at 2026-01-31.
GENERATION.mdreferences/advanced-pre-rendering.mdreferences/advanced-spa-mode.mdreferences/advanced-streaming.mdreferences/best-practices-type-safety.mdreferences/core-actions.mdreferences/core-data-loading.mdreferences/core-hooks.mdreferences/core-modes.mdreferences/core-navigation.mdreferences/core-route-module.mdreferences/core-routing.mdreferences/features-error-handling.mdreferences/features-fetchers.mdreferences/features-file-uploads.mdreferences/features-form-validation.mdreferences/features-middleware.mdreferences/features-navigation-blocking.mdreferences/features-search-params.mdreferences/features-view-transitions.mdThe skill is based on React Router v7.13.0, generated at 2026-01-31.
React Router is a multi-strategy router for React bridging the gap from React 18 to React 19. You can use it maximally as a React framework or as minimally as you want. It supports three modes: Declarative (basic routing), Data (with loaders/actions), and Framework (full-featured with type safety and code splitting).
| Topic | Description | Reference |
|---|---|---|
| Modes | Three usage modes: Framework, Data, and Declarative - choosing the right approach | core-modes |
| Routing | Route configuration, path patterns, nested routes, layout routes, and route matching | core-routing |
| Navigation | Navigation components and hooks: Link, NavLink, Form, useNavigate, redirect | core-navigation |
| Data Loading | Loading data with loaders and clientLoaders in route modules | core-data-loading |
| Actions | Data mutations with actions and clientActions in route modules | core-actions |
| Route Module | Route module API: component, loader, action, error boundary, headers, meta, and more | core-route-module |
| Hooks | Essential React Router hooks: useNavigation, useLocation, useParams, useMatches, and more | core-hooks |
| Topic | Description | Reference |
|---|---|---|
| Fetchers | Using fetchers for concurrent data interactions without navigation | features-fetchers |
| Error Handling | Error boundaries, error handling, and error responses | features-error-handling |
| Middleware | Middleware for authentication, logging, and request processing | features-middleware |
| Topic | Description | Reference |
|---|---|---|
| Form Validation | Form validation patterns, error handling, and user feedback | features-form-validation |
| File Uploads | Handling file uploads with multipart form data and file storage | features-file-uploads |
| Search Params | Working with URL search parameters using useSearchParams hook | features-search-params |
| Topic | Description | Reference |
|---|---|---|
| View Transitions | Smooth page transitions using View Transitions API | features-view-transitions |
| Navigation Blocking | Blocking navigation with useBlocker for unsaved form data | features-navigation-blocking |
| Topic | Description | Reference |
|---|---|---|
| Type Safety | Type safety with Route types, automatic type inference, and type generation | best-practices-type-safety |
| Topic | Description | Reference |
|---|---|---|
| Streaming | Streaming with Suspense, deferring non-critical data, and React Suspense integration | advanced-streaming |
| Pre-rendering | Pre-rendering static pages at build time for faster page loads | advanced-pre-rendering |
| SPA Mode | Single Page App mode with SSR disabled and client-side routing | advanced-spa-mode |
npx claudepluginhub hairyf/skillsProvides best practices for React Router v7 data-driven routing: loaders, actions, Form vs useFetcher, nested routes, and guards.
Provides 55 rules for React Router apps covering loaders, actions, forms, streaming, and route organization. Activates when writing routes, data fetching, form handling, or route layout.
Implements client-side routing using React Router, Vue Router, and Angular Router. For building multi-page apps with navigation and route protection.