GoScrobble/web/node_modules/react-router-dom
2022-04-25 14:48:54 +12:00
..
cjs 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
es 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
esm 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
modules 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
umd 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
BrowserRouter.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
generatePath.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
HashRouter.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
index.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
LICENSE 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
Link.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
matchPath.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
MemoryRouter.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
NavLink.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
package.json 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
Prompt.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
README.md 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
Redirect.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
Route.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
Router.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
StaticRouter.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
Switch.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
warnAboutDeprecatedCJSRequire.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
withRouter.js 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00

react-router-dom

DOM bindings for React Router.

Installation

Using 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.min.js"></script>

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.