Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
remix-run avatar

React Router Framework Mode

  • 3.1k installs
  • 138 repo stars
  • Updated June 18, 2026
  • remix-run/agent-skills

react-router-framework-mode is an agent skill that guides React Router framework-mode routing, loaders, actions, forms, navigation, and SSR configuration using official reference patterns.

About

react-router-framework-mode is an agent skill for React Router full-stack framework mode covering file-based routing, loaders and actions, Form navigation, pending and optimistic UI, error boundaries, and react-router.config.ts rendering strategies. It routes agents to reference files for routing, route modules, special files, data loading, actions, navigation, pending UI, error handling, rendering strategies, middleware, sessions, and type safety instead of guessing APIs. Critical patterns include GET search forms with Form not manual setSearchParams, inline mutations via useFetcher instead of page-navigating Form posts, global nav and footer in root.tsx with Outlet, and meta exports that read loaderData rather than deprecated data. Version gates document middleware at React Router 7.9.0 with v8_middleware and core framework features from 7.0.0 onward. Developers reach for it when scaffolding routes, wiring loaders and actions, configuring SSR or SPA mode, or debugging framework-mode forms, sessions, and authentication flows on new or existing React Router projects.

  • Maps tasks to reference files for routing, loaders, actions, navigation, pending UI, errors, rendering, middleware, and
  • Enforces Form method=get for search, useFetcher for inline mutations, and root.tsx Outlet layouts over ad-hoc layout fil
  • Documents React Router version gates including middleware at 7.9.0 plus v8_middleware flag.
  • Covers SSR, SPA, and pre-rendering configuration through react-router.config.ts guidance.
  • Requires meta functions to use loaderData instead of deprecated data export patterns.

React Router Framework Mode by the numbers

  • 3,062 all-time installs (skills.sh)
  • +49 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #176 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

react-router-framework-mode capabilities & compatibility

Capabilities
route and layout guidance · loader and action patterns · form and navigation conventions · rendering strategy configuration · session and auth reference routing
Use cases
frontend · api development
From the docs

What react-router-framework-mode says it does

Framework mode is React Router's full-stack development experience with file-based routing
SKILL.md
npx skills add https://github.com/remix-run/agent-skills --skill react-router-framework-mode

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs3.1k
repo stars138
Security audit3 / 3 scanners passed
Last updatedJune 18, 2026
Repositoryremix-run/agent-skills

How do I configure React Router framework mode routes, loaders, actions, and forms without violating current API conventions?

Guide React Router framework-mode routing, loaders, actions, forms, navigation, pending UI, SSR config, and authentication patterns.

Who is it for?

Developers building or refactoring full-stack React Router apps who need framework-mode routing, data loading, and form mutation patterns.

Skip if: Skip when the project uses legacy React Router APIs without framework mode or needs only generic React component help.

When should I use this skill?

User configures routes, loaders, actions, Form navigation, pending UI, react-router.config.ts rendering, or authentication in React Router framework mode.

What you get

Correct route modules, loader and action wiring, navigation patterns, and rendering configuration aligned with React Router reference guidance.

  • Action handlers
  • Form and useFetcher mutation components

Files

SKILL.mdMarkdownGitHub ↗

React Router Framework Mode

Framework mode is React Router's full-stack development experience with file-based routing, server-side, client-side, and static rendering strategies, data loading and mutations, and type-safe route module API.

When to Apply

  • Configuring new routes (app/routes.ts)
  • Loading data with loader or clientLoader
  • Handling mutations with action or clientAction
  • Navigating with <Link>, <NavLink>, <Form>, redirect, and useNavigate
  • Implementing pending/loading UI states
  • Configuring SSR, SPA mode, or pre-rendering (react-router.config.ts)
  • Implementing authentication

References

Load the relevant reference for detailed guidance on the specific API/concept:

ReferenceUse When
references/routing.mdConfiguring routes, nested routes, dynamic segments
references/route-modules.mdUnderstanding all route module exports
references/special-files.mdCustomizing root.tsx, adding global nav/footer, fonts
references/data-loading.mdLoading data with loaders, streaming, caching
references/actions.mdHandling forms, mutations, validation
references/navigation.mdLinks, programmatic navigation, redirects
references/pending-ui.mdLoading states, optimistic UI
references/error-handling.mdError boundaries, error reporting
references/rendering-strategies.mdSSR vs SPA vs pre-rendering configuration
references/middleware.mdAdding middleware (requires v7.9.0+)
references/sessions.mdCookie sessions, authentication, protected routes
references/type-safety.mdAuto-generated route types, type imports, type safety

Version Compatibility

Some features require specific React Router versions. Always verify before implementing:

npm list react-router
FeatureMinimum VersionNotes
Middleware7.9.0+Requires v8_middleware flag
Core framework features7.0.0+loaders, actions, Form, etc.

Critical Patterns

These are the most important patterns to follow. Load the relevant reference for full details.

Forms & Mutations

Search forms - use <Form method="get">, NOT onSubmit with setSearchParams:

// ✅ Correct
<Form method="get">
  <input name="q" />
</Form>

// ❌ Wrong - don't manually handle search params
<form onSubmit={(e) => { e.preventDefault(); setSearchParams(...) }}>

Inline mutations - use useFetcher, NOT <Form> (which causes page navigation):

const fetcher = useFetcher();
const optimistic = fetcher.formData?.get("favorite") === "true" ?? isFavorite;

<fetcher.Form method="post" action={`/favorites/${id}`}>
  <button>{optimistic ? "★" : "☆"}</button>
</fetcher.Form>;

See references/actions.md for complete patterns.

Layouts

Global UI belongs in `root.tsx` - don't create separate layout files for nav/footer:

// app/root.tsx - add navigation, footer, providers here
export default function App() {
  return (
    <div>
      <nav>...</nav>
      <Outlet />
      <footer>...</footer>
    </div>
  );
}

Use nested routes for section-specific layouts. See references/routing.md.

Route Module Exports

`meta` uses `loaderData`, not deprecated data:

// ✅ Correct
export function meta({ loaderData }: Route.MetaArgs) { ... }

// ❌ Wrong - `data` is deprecated
export function meta({ data }: Route.MetaArgs) { ... }

See references/route-modules.md for all exports.

Further Documentation

If anything related to React Router is not covered in these references, you can search the official documentation:

https://reactrouter.com/docs

Related skills

How it compares

Use react-router-framework-mode over generic React form skills when the app uses React Router v7 framework mode actions and loaders.

FAQ

When should search forms use Form?

Use Form method=get for search parameters instead of onSubmit handlers that manually call setSearchParams.

How should inline mutations avoid full page navigation?

Use useFetcher with fetcher.Form for inline mutations instead of a top-level Form that navigates away.

What React Router version is required for middleware?

Middleware requires React Router 7.9.0 or newer with the v8_middleware flag enabled.

Is React Router Framework Mode safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.