0% found this document useful (0 votes)
67 views

React-Router-Dom - NPM

The react-router-dom package provides DOM bindings for React Router. It can be installed with npm and includes components like BrowserRouter, Route, and Link. Issues should be reported on GitHub. React Router is maintained by React Training and used for routing, navigation, and linking in React applications.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

React-Router-Dom - NPM

The react-router-dom package provides DOM bindings for React Router. It can be installed with npm and includes components like BrowserRouter, Route, and Link. Issues should be reported on GitHub. React Router is maintained by React Training and used for routing, navigation, and linking in React applications.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

30/1/24, 17:59 react-router-dom - npm

Pro Teams Pricing Documentation

Sign Up Sign In

Search packages Search

react-router-dom
5.2.0 • Public • Published 4 years ago

Readme

Code Beta

7 Dependencies

19.126 Dependents

252 Versions

react-router-dom

DOM bindings for React


Router.
Installation
Using npm:

https://www.npmjs.com/package/react-router-dom/v/5.2.0 1/4
30/1/24, 17:59 react-router-dom - npm

$ npm install --save react-router-dom

Then with a module bundler like webpack, use as you would anything else:

// using ES6 modules


import { BrowserRouter, Route, Link } from "react-router-dom";

// using CommonJS modules


const BrowserRouter = require("react-router-dom").BrowserRouter;
const Route = require("react-router-dom").Route;
const Link = require("react-router-dom").Link;

The UMD build is also available on unpkg:

<script src="https://unpkg.com/react-router-dom/umd/react-router-dom.m

You can find the library on window.ReactRouterDOM .

Issues
If you find a bug, please file an issue on our issue tracker on GitHub.

Credits
React Router is built and maintained by React Training.

Keywords

react router route routing history link

https://www.npmjs.com/package/react-router-dom/v/5.2.0 2/4
30/1/24, 17:59 react-router-dom - npm

Install

npm i [email protected]

Repository
github.com/remix-run/react-router

Homepage
github.com/remix-run/react-router#readme

Version License
5.2.0 MIT

Unpacked Size Total Files


632 kB 50

Issues Pull Requests


43 12

Last publish
4 days ago

Collaborators

Try on RunKit

Report malware

https://www.npmjs.com/package/react-router-dom/v/5.2.0 3/4

You might also like