NPM Star
Collections
  1. Home
  2. Compare
  3. react-router vs react-router-dom
NPM Compare

Compare NPM packages statistics, trends, and features

CollectionsVS Code extensionChrome extensionTermsPrivacyLinkTreeIndiehackersBig Frontendqiuyumi

React Router Core vs React Router DOM: Web Navigation Tools

These packages work together to handle webpage navigation in React applications. React Router is the core routing library containing the main routing logic, while React Router DOM adds specific tools for web browsers. Most web developers only need to install react-router-dom, as it includes react-router as a dependency and provides all the necessary browser-specific components.

React NavigationroutingnavigationreactbrowserURL management

Unable to load comparison data. Please try again later.

Similar Packages

reach/router

95%

A routing library built by the original creator of React Router. Focuses on accessibility and simplicity, with built-in focus management for screen readers.

Very similar to React Router but with better accessibility features built-in. Good for projects where accessibility is a top priority.

React Routing

wouter

90%

A tiny router for React that's simpler than React Router. It has a very small size (1KB) and provides basic routing features like path matching and navigation.

Perfect for small to medium projects where you don't need all of React Router's complex features. It uses a similar API to React Router so it's easy to learn if you know React Router.

React Routing

next/router

70%

The built-in router that comes with Next.js framework. Provides file-system based routing and easy page transitions with zero configuration needed.

Great alternative if you're using Next.js. No need to install additional packages, and it's simpler to use because routing is based on your folder structure.

React Routing

universal-router

60%

A simple middleware-style router that can work with any JavaScript framework, not just React. Supports async routes and nested routes.

Good choice if you want a framework-agnostic router that might work across different projects. Simpler than React Router but still powerful.

JavaScript Routing

No README available

No README available

Dependencies Comparison

react-router

Dependencies

cookie^1.0.1
set-cookie-parser^2.6.0

Dev Dependencies

tsup^8.3.0
react^19.1.0
undici^6.19.2
wireit0.14.9
premove^4.0.0
react-dom^19.1.0
typescript^5.1.6
react-test-renderer^19.1.0
@testing-library/react^16.3.0
jest-environment-jsdom^29.6.2
@types/set-cookie-parser^2.4.1
@testing-library/jest-dom^6.6.3
@testing-library/user-event^14.6.1

Peer Dependencies

react>=18
react-dom>=18

react-router-dom

Dependencies

react-router7.9.1

Dev Dependencies

tsup^8.3.0
react^19.1.0
wireit0.14.9
react-dom^19.1.0
typescript^5.1.6

Peer Dependencies

react>=18
react-dom>=18

Who's Using These Packages

react-router

react-antd-admin-pnpm
react-antd-admin-pnpm

基于react18, antd5开发的gbeata-admin 后台管理系统,gbeata组件库

geoplumber
geoplumber

Serve geographic data from R and consume with scalable front end.

vertex
vertex

Node/React/Redux blog. Dockerized, Isomorphic, has Auth. Will be decentralized.

cheeseswap-interface
cheeseswap-interface

Web swap/exchange interface

react-router-dom

react-antd-admin-pnpm
react-antd-admin-pnpm

基于react18, antd5开发的gbeata-admin 后台管理系统,gbeata组件库

geoplumber
geoplumber

Serve geographic data from R and consume with scalable front end.

cheeseswap-interface
cheeseswap-interface

Web swap/exchange interface

python-tracer
python-tracer

Интерактивный тренажёр по Питону

StarsIssuesVersionUpdatedⓘLast publish dateCreatedⓘPackage creation dateSizeⓘMinified + Gzipped size
R
react-router
55,4941257.9.1a month ago11 years agoinstall size 57.8 KB
R
react-router-dom
55,4941257.9.1a month ago9 years agoinstall size 335 B