react-router-framework-mode

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

41|8|Updated Mar 20, 2024
One-click install
npx skills add https://github.com/sora32127/healthy-person-emulator-dotorg --skill react-router-framework-mode-sora32127
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react-router-framework-mode
Source: https://github.com/sora32127/healthy-person-emulator-dotorg/tree/main/.agent/skills/react-router-framework-mode
Command: npx skills add https://github.com/sora32127/healthy-person-emulator-dotorg --skill react-router-framework-mode-sora32127

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Builds full-stack React apps using React Router framework mode.

Core Features & Use Cases

  • File-based routing with a unified approach for server-side, client-side, and static rendering strategies.
  • Data loading and mutations via loader, action, clientLoader and clientAction with type-safe route modules.
  • Navigation, forms, pending/optimistic UI, and error boundaries with support for react-router.config.ts and common conventions.

Quick Start

Create app/routes.ts with your route tree and wire up loaders, actions, and navigation to enable framework-mode development.

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 build a full-stack React app with React Router framework mode?▼

To build a full-stack React app with React Router framework mode, create an app/routes.ts file to define your route tree, then wire up loaders, actions, and navigation to enable unified server-side, client-side, and static rendering.

How do I configure loaders and actions for data fetching in React Router?▼

Loaders and actions in React Router handle data fetching and mutations. You export them from type-safe route modules alongside clientLoader and clientAction to manage data across different server and client rendering strategies.

What is React Router framework mode and how does it handle routing conventions?▼

React Router framework mode is an architecture for full-stack React apps that uses file-based routing with react-router.config.ts. It provides a unified approach for server-side, client-side, and static rendering strategies.

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

Yes, React Router framework mode supports pending and optimistic UI states. It includes built-in navigation, form handling, and error boundaries to manage user interface transitions during data loading and mutations.

Can I use client-side rendering and server-side rendering together in React Router?▼

Yes, you can use client-side and server-side rendering together. React Router framework mode provides a unified approach that supports server-side, client-side, and static rendering strategies simultaneously within the same application.