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

React Router V7

  • 51 installs
  • 2 repo stars
  • Updated August 3, 2026
  • fandhe-ai/agent-reference-skills

Helps with frontend development tasks.

About

react-router-v7 is a Claude Code skill for frontend development. It helps solo builders move faster with AI-assisted coding.

  • react-router-v7
  • Frontend Development
  • AI-coding skill

React Router V7 by the numbers

  • 51 all-time installs (skills.sh)
  • Ranked #1,296 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill react-router-v7

Add your badge

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

Listed on Skillselion
Installs51
repo stars2
Last updatedAugust 3, 2026
Repositoryfandhe-ai/agent-reference-skills

What it does

Helps with frontend development tasks.

Files

references/cli/dev.mdMarkdownGitHub ↗

@react-router/dev CLI

The React Router CLI, provided by @react-router/dev. Should be listed in devDependencies so it is not deployed to your server.

npx @react-router/dev -h

Availability: Framework Mode only.

詳細説明

react-router dev

Runs your app in development mode with HMR and Hot Data Revalidation (HDR), powered by Vite.

  • HMR updates client-side code (components, markup, styles) without a full reload
  • HDR updates server-side code — re-fetches loader data when server code changes, keeping the app in sync without a page refresh
react-router dev
FlagTypeDescription
--portnumberSpecify port
--hoststringSpecify hostname
--open`boolean \string`
--strictPortbooleanExit if specified port is already in use
--corsbooleanEnable CORS
--forcebooleanForce optimizer to ignore cache and re-bundle
--mode, -mstringSet env mode
--config, -cstringUse specified config file
--logLevel, -lstringLog level: info, warn, error, silent
--clearScreenbooleanAllow/disable clear screen when logging
--profileStart built-in Node.js inspector

---

react-router build

Builds the app for production with Vite. Sets NODE_ENV=production and minifies output.

react-router build
FlagTypeDefaultDescription
--minify`boolean \"terser" \"esbuild"`
--sourcemapClient`boolean \"inline" \"hidden"`
--sourcemapServer`boolean \"inline" \"hidden"`
--assetsInlineLimitnumber4096Static asset base64 inline threshold (bytes)
--mode, -mstringSet env mode
--config, -cstringUse specified config file
--logLevel, -lstringLog level
--clearScreenbooleanAllow/disable clear screen
--emptyOutDirbooleanForce empty outDir when outside root
--profileStart built-in Node.js inspector

---

react-router reveal

Generates entry.client.tsx and entry.server.tsx in your app directory, giving you control over entry points. When these files exist, React Router uses them instead of the built-in defaults.

npx react-router reveal
FlagTypeDefaultDescription
--typescriptbooleantrueGenerate TypeScript files
--no-typescriptbooleanfalseGenerate plain JavaScript files
--mode, -mstringSet env mode
--config, -cstringUse specified config file

---

react-router routes

Prints the route tree to the terminal. Useful for inspecting route config output.

react-router routes

# JSON output
react-router routes --json
FlagTypeDefaultDescription
--jsonbooleanfalseOutput routes in JSON format
--mode, -mstringSet env mode
--config, -cstringUse specified config file

---

react-router typegen

Generates TypeScript types for all routes into .react-router/types/. Runs automatically during react-router dev, but can be run manually for CI.

# Generate once
react-router typegen

# Watch mode
react-router typegen --watch
FlagTypeDefaultDescription
--watchbooleanfalseWatch for route config changes
--mode, -mstringSet env mode
--config, -cstringUse specified config file

注意点

  • @react-router/dev should be in devDependencies, not dependencies, to avoid deploying dev tooling to your server
  • react-router dev requires a Vite-based setup (Framework Mode); it is not available in Data or Declarative modes
  • Run react-router typegen in CI before tsc to ensure generated types are present
  • react-router reveal only needs to be run once; the generated entry files are then committed to your repo

関連

  • Type Safety
  • Hot Module Replacement
  • Code Splitting

Related skills

This week in AI coding

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

unsubscribe anytime.