{
 "kind": "tool",
 "slug": "react-router-dom",
 "path": "tools/react-router-dom/",
 "name": "React Router",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Web frameworks",
   "tools/web-frameworks/"
  ]
 ],
 "lead": "Declarative routing library for building single-page React applications.",
 "chips": [
  {
   "label": "Web frameworks",
   "path": "tools/web-frameworks/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install react-router-dom"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/remix-run/react-router"
  },
  {
   "label": "Website",
   "href": "https://github.com/remix-run/react-router#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/remix-run/react-router"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 18, 2026. ",
   "src": "https://github.com/remix-run/react-router"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "292 projects",
   "status": "info",
   "sub": "#4 of 76 in its category",
   "note": "Dependency in 292 public GitHub projects set up for AI coding agents that we scanned (4.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What React Router does",
   "parts": [
    {
     "t": "prose",
     "text": "React Router lets a project choose how much of it to adopt: the README says you can use it \"maximally as a React framework or minimally as a library with your own architecture.\""
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "React Router popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "87",
       "of": "/ 100",
       "l": "Gid Score, #20 overall"
      },
      {
       "n": "59.1M",
       "l": "downloads a week, npm"
      },
      {
       "n": "56.7K",
       "l": "GitHub stars"
      },
      {
       "n": "292",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How React Router is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "React Router is a dependency in 292 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (6.0% of the 4,867 JavaScript/TypeScript ones), #4 of 76 in web frameworks.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,592; those are left out of every share on this page.",
      "The most used alternative in our scan is TanStack Router (50 projects).",
      "Projects that use it most often also use Vite (90.4%), React (99.0%), Lucide React (65.4%).",
      "It is more common in projects set up for Roo Code (9.9%) than for OpenAI Codex (2.6%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "166 projects, 6.8%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "140 projects, 4.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "100 projects, 3.3%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "27 projects, 9.7%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "15 projects, 3.2%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "12 projects, 2.6%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "11 projects, 9.9%",
       "v": "Roo Code",
       "path": "agents/roo-code/"
      },
      {
       "l": "11 projects, 7.9%",
       "v": "Kiro",
       "path": "agents/kiro/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 90.4% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 99.0% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 65.4% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 79.5% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 47.3% of its projects",
       "v": "date-fns",
       "path": "tools/date-fns/"
      },
      {
       "l": "In 44.5% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 42.1% of its projects",
       "v": "Recharts",
       "path": "tools/recharts/"
      },
      {
       "l": "In 45.2% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "React Router in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Maintainers call v7 to v8 non-breaking",
       "v": "The website says the move from v7 to v8 is \"a non-breaking upgrade\" and tells users to \"Keep using React Router the same way you already do.\" The site's card for v7 users says \"Upgrade to v8 in just a few steps.\""
      },
      {
       "l": "A guide for adding framework features later",
       "v": "The website links a guide called \"Adopt Framework Features\" for people who already have a React Router app and want the newer framework features in it."
      },
      {
       "l": "Runtime packages kept beside the core",
       "v": "The README lists packages named for Node, Express, Architect and Cloudflare under <code>./packages</code>, next to the core <code>react-router</code> package."
      },
      {
       "l": "Layouts that hold steady while routes change",
       "v": "On the Maxima Therapy site, the builders put a hero carousel in a layout above an <code>Outlet</code>. They wrote about it on Codrops. Page data changes with the route, and the carousel does not re-render."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "v8 sets a high floor",
       "v": "The website lists the v8 baseline as Node 22+, Vite 7+, React 19+ and ESM-only. The maintainers say the higher baselines let them \"keep the core of React Router simple.\""
      },
      {
       "l": "Older docs live elsewhere",
       "v": "The README links separate docs for v7 and v6 under reactrouter.com. Docs for v5 are on their own subdomain, <code>v5.reactrouter.com</code>."
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about React Router",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Open Collective: https://opencollective.com/react-router"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "React Router vs TanStack Router",
         "note": "used together in 1 projects",
         "path": "tools/compare/react-router-vs-tanstack-router/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "vite: Build tool and dev server",
        "react: UI library",
        "framer-motion: Animation library",
        "tailwindcss: Utility-first CSS",
        "@react-three: React renderer for Three.js",
        "three: 3D graphics library"
       ]
      },
      {
       "title": "More in Web frameworks",
       "path": "tools/web-frameworks/",
       "items": [
        {
         "text": "React",
         "path": "tools/react/"
        },
        {
         "text": "Next.js",
         "path": "tools/next/"
        },
        {
         "text": "next-themes",
         "path": "tools/next-themes/"
        },
        {
         "text": "Vue",
         "path": "tools/vue/"
        },
        {
         "text": "Astro",
         "path": "tools/astro/"
        },
        {
         "text": "React Native Web",
         "path": "tools/react-native-web/"
        },
        {
         "text": "Angular",
         "path": "tools/angular/"
        },
        {
         "text": "Svelte",
         "path": "tools/svelte/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "React Router",
       "me": true,
       "facts": [
        "MIT",
        "Gid 87",
        "59.1M/wk"
       ]
      },
      {
       "name": "TanStack Router",
       "why": "Modern, type-safe routing library with file-based routing for React.",
       "path": "tools/tanstack-react-router/",
       "facts": [
        "MIT",
        "Gid 72",
        "29.5M/wk"
       ]
      }
     ],
     "more": "Compare React Router with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install react-router-dom"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## React Router\n- Follow the install guide that matches the project's mode: `reactrouter.com/start/framework/installation` for framework use, `reactrouter.com/start/library/installation` for library use.\n- On v8, target Node 22+, Vite 7+ and React 19+. The package is ESM-only, so write ESM imports.\n- For a v7 project, upgrade using the guide at `reactrouter.com/upgrading/v7`.\n- To add framework features to an existing React Router app, follow the site's \"Adopt Framework Features\" guide.\n- When the installed major is older, read the matching docs: `reactrouter.com/v7`, `reactrouter.com/v6` or `v5.reactrouter.com`.\n- For server runtimes, pick from the packages the README lists: `@react-router/node`, `@react-router/serve`, `@react-router/express`, `@react-router/architect`, `@react-router/cloudflare`.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm react-router-dom"
  ],
  [
   "Category",
   "Web frameworks"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "react-router@8.4.0, September 15, 2026"
  ],
  [
   "On GitHub since",
   "May 2014"
  ],
  [
   "Gid Score",
   "87.2"
  ],
  [
   "Rank in category",
   "#4 of 76"
  ],
  [
   "GitHub",
   "remix-run/react-router"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/remix-run.png"
}