React-Router-Dom - NPM

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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