react-router-framework-mode

Configure React Router framework-mode routes, loaders, actions, and navigation.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/sethdavis512/iridium-tambo --skill react-router-framework-mode-sethdavis512
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-router-framework-mode
Source: https://github.com/sethdavis512/iridium-tambo/tree/main/.agents/skills/react-router-framework-mode
Command: npx skills add https://github.com/sethdavis512/iridium-tambo --skill react-router-framework-mode-sethdavis512

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Configuring, data-loading, and navigation for full-stack React apps can be complex without a cohesive framework-mode pattern.

Core Features & Use Cases

  • Configuring routes across server, client, and static rendering to support SSR, SPA, and prerendered pages.
  • Data loading with loader/clientLoader and action/clientAction to fetch and mutate data in a type-safe, file-based routing setup.
  • Navigation & UX through <Link>, <NavLink>, and <Form>, with pending/optimistic UI, redirects, and authentication flows.
  • References & patterns across routing, route modules, middleware, and rendering strategies to guide implementation.

Quick Start

Create a new full-stack React app using framework mode, add a route with loader and action, and verify navigation and error handling.

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 React Router loaders and actions for full-stack data fetching?

React Router loaders and actions handle full-stack data fetching by coordinating server-side data loading with mutations. You configure loader and clientLoader functions to fetch data, and action or clientAction functions to process form mutations across SSR and SPA deployments.

What is React Router framework mode and when do I need it for SSR?

React Router framework mode is a built-in routing configuration that manages server-side rendering, static pre-rendering, and SPA deployments. You need it when building full-stack React applications that require coordinated data loading, mutations, and navigation across different rendering strategies.

How do I set up type-safe routing and navigation with React Router framework mode?

Type-safe routing in React Router framework mode is set up using a file-based routing structure. You define routes with loader and action exports, then use Link and NavLink components for navigation to ensure type-safe data passing and UI state management.

Can I use React Router framework mode for both server-rendered and client-side actions?

Yes, React Router framework mode supports both server-rendered and client-side data handling. You can implement server logic using loader and action exports, while clientLoader and clientAction handle client-side fetching and mutations for SPA and pre-rendered deployments.

How do I handle redirects and authentication flows in React Router framework mode?

Redirects and authentication flows in React Router framework mode are handled within loader and action functions. You validate user sessions during the data loading phase and return redirect responses to protect routes and manage navigation for authenticated users.

Does React Router framework mode support pending and optimistic UI states for mutations?

Yes, React Router framework mode supports pending and optimistic UI states. By using the Form component for mutations, you can track submission states to render pending UI and apply optimistic updates while the action processes the data request.