remix-run avatar

React Router Declarative Mode

This covers React Router's declarative mode, the JSX-based approach with BrowserRouter, Routes, and Route components. You'd reach for this when you want straightforward client-side routing without the data loading machinery that comes with RouterProvider and createBrowserRouter. The skill focuses on the core hooks like useParams, useSearchParams, and useNavigate, plus navigation with Link and NavLink for active states. It's a clean reference if you're building something that doesn't need loaders or actions and you just want to wire up routes the classic React way. The examples are practical and the three-reference structure keeps things organized without overwhelming you.

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

Install

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

Installs into .claude/skills of the current project.

Files

React Router Declarative Mode

Declarative mode is React Router's simplest mode using <BrowserRouter>, <Routes>, and <Route> for basic client-side routing without data loading features like loaders or actions.

When to Apply

  • Using <BrowserRouter> for routing
  • Configuring routes with <Routes> and <Route>
  • Navigating with <Link>, <NavLink>, or useNavigate
  • Reading URL params with useParams
  • Working with search params using useSearchParams
  • Accessing location with useLocation

References

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

ReferenceUse When
references/routing.mdConfiguring routes, nested routes, dynamic params
references/navigation.mdLinks, NavLink active states, programmatic nav
references/url-values.mdReading params, search params, location

Critical Patterns

These are the most important patterns to follow. Load the relevant reference for full details.

Basic Route Setup

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-progress-barsyncfusion/react-ui-components-skillsImplement Syncfusion React Progress Bar for visual feedback. Use this skill whenever users need to display progress indicators, loading states, file uploads, da679skills.sh installs
2syncfusion avatarsyncfusion-angular-commonsyncfusion/angular-ui-components-skillsCommon utilities and features for Syncfusion Angular components. Use this skill when the user needs to implement animations, drag-and-drop, state persistence, R338skills.sh installs
3syncfusion avatarsyncfusion-angular-rich-text-editorsyncfusion/angular-ui-components-skillsImplements the Syncfusion Angular Rich Text Editor (ejs-richtexteditor) from @syncfusion/ej2-angular-richtexteditor using RichTextEditorModule, HtmlEditorServic328skills.sh installs
4oguzhan18 avatarshadcn-ngoguzhan18/angular-ecosystem-skillsALWAYS use when writing code importing shadcn-ng (shadcn/angular). Consult for debugging, best practices, or modifying Angular shadcn components.152skills.sh installs
5nextlevelbuilder avatarui-ux-pro-maxnextlevelbuilder/ui-ux-pro-max-skillUI/UX design intelligence for web and mobile. Searchable local database with 84 styles, 192 color palettes, 74 font pairings, 192 product types, 98 UX guideline443.3Kskills.sh installs
6vercel-labs avatarvercel-react-view-transitionsvercel-labs/agent-skillsGuide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view tran185.5Kskills.sh installs