react-router-framework-mode

Build full-stack React applications with React Router framework mode.

4|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/tech-with-seth/iridium --skill react-router-framework-mode
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react-router-framework-mode
Source: https://github.com/tech-with-seth/iridium/tree/main/.agents/skills/react-router-framework-mode
Command: npx skills add https://github.com/tech-with-seth/iridium --skill react-router-framework-mode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers in building full-stack React applications using React Router's framework mode, unifying client and server concerns into a coherent routing and data flow model.

Core Features & Use Cases

  • Routing orchestration: Configure routes, nested layouts, loaders, and actions across server and client.
  • Data loading & mutations: Implement loader and action with type-safe route modules; handle clientLoader for hydration.
  • Error handling & navigation: Support ErrorBoundary, pending UI, and robust navigation flows.
  • Use Case: Build a dashboard with protected routes, data fetching, form submissions, and SSR/SPA rendering strategies using app/routes.ts or react-router.config.ts.

Quick Start

Install and configure the framework-mode setup in your app by defining routes in app/routes.ts or react-router.config.ts, implement loader/action/middleware, and initialize your root layout to incorporate the router runtime.

Frequently Asked Questions about react-router-framework-mode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure routes and loaders in React Router framework mode?▼

To configure React Router framework mode, define your routes in app/routes.ts or react-router.config.ts, then implement loader and action functions within route modules to handle data fetching and mutations across server and client.

What is React Router framework mode and when should I use it?▼

React Router framework mode unifies client and server concerns into a coherent routing and data flow model, used for building full-stack React applications that require SSR, data loading, and form mutations.

How do I handle data mutations and pending UI with React Router actions?▼

Implement action functions in your framework-mode route modules to process form submissions and mutations, then leverage type-safe exports to manage pending and optimistic UI states during the request lifecycle.

Does React Router framework mode support SSR and SPA rendering strategies?▼

Yes, React Router framework mode supports both SSR and SPA rendering strategies, allowing you to configure server-side rendering and client-side hydration through route modules and the router runtime.

How do I use clientLoader for hydration in React Router framework mode?▼

Implement the clientLoader export in your framework-mode route modules to handle client-side data fetching and hydration, ensuring predictable data flow when transitioning from server-rendered to client-rendered content.

How do I implement ErrorBoundary and protected routes in React Router?▼

Configure nested layouts and ErrorBoundary exports in your route modules to handle routing errors, and use loader functions to enforce protected routes by validating access before rendering the dashboard.