remix-run avatar

React Router Data Mode

This teaches Claude to build React apps with React Router's data mode using createBrowserRouter and RouterProvider instead of the Vite plugin. It's for existing React projects that want proper data loading with loaders, form handling with actions, and optimistic UI without going full framework. The skill includes solid patterns for common mistakes like using Form method="get" for search params instead of manual onSubmit handlers, and using useFetcher for inline mutations that shouldn't trigger navigation. Good reference tables point you to the right docs for routing, data loading, and pending states. If you're already using React Router but still wrestling with fetch calls in useEffect, this will clean that up.

skills.sh installs
914
GitHub stars
134
last updated
Jul 14, 2026

Install

$ npx -y skills add remix-run/agent-skills --skill react-router-data-mode --agent claude-code

Installs into .claude/skills of the current project.

Files

React Router Data Mode

Data mode uses createBrowserRouter and RouterProvider to enable data loading, actions, and pending UI without the framework's Vite plugin. This is ideal for existing React applications that want to add data loading and mutation capabilities.

When to Apply

  • Using createBrowserRouter with route objects
  • Loading data with loader property on routes
  • Handling mutations with action property
  • Navigating with <Link>, <NavLink>, <Form>, redirect, and useNavigate
  • Implementing pending/loading UI states with useNavigation
  • Using useFetcher for mutations without navigation

References

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

Sponsors

Details

Repository
github.com/remix-run/agent-skills
Categories
Frontend Development, AI & Agent Building
First seen
Jun 3, 2026

More from remix-run/agent-skills

All 3
1syncfusion avatarsyncfusion-react-treegridsyncfusion/react-ui-components-skillsImplements Syncfusion React TreeGrid for hierarchical data with sorting, filtering, editing, exporting, paging, virtual scrolling, and advanced features. Suppor771skills.sh installs
2syncfusion avatarsyncfusion-react-licensesyncfusion/react-ui-components-skillsUse this skill when the user asks about Syncfusion React licensing, license keys, license registration, license validation errors, trial licenses, or license tr744skills.sh installs
3syncfusion avatarsyncfusion-react-notificationssyncfusion/react-ui-components-skillsComprehensive guide for implementing Syncfusion React Notification components including Badge, Message, Skeleton, Toast, and Spinner. Use this when applying sta684skills.sh installs
4syncfusion avatarsyncfusion-angular-licensesyncfusion/angular-ui-components-skillsUse this skill when the user asks about Syncfusion Angular licensing, license keys, license registration, license validation errors, trial licenses, or license 330skills.sh installs
5emilkowalski avatarpick-ui-libraryemilkowalski/skillsPick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, t218.9Kskills.sh installs
6shadcn-ui avatarshadcnshadcn-ui/uiManages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, c142.4Kskills.sh installs