spaceout/front_end/node_modules/react-router-dom
2020-12-12 10:25:30 -05:00
..
cjs Added Django and React Template 2020-12-12 10:25:30 -05:00
es Added Django and React Template 2020-12-12 10:25:30 -05:00
esm Added Django and React Template 2020-12-12 10:25:30 -05:00
modules Added Django and React Template 2020-12-12 10:25:30 -05:00
umd Added Django and React Template 2020-12-12 10:25:30 -05:00
BrowserRouter.js Added Django and React Template 2020-12-12 10:25:30 -05:00
generatePath.js Added Django and React Template 2020-12-12 10:25:30 -05:00
HashRouter.js Added Django and React Template 2020-12-12 10:25:30 -05:00
index.js Added Django and React Template 2020-12-12 10:25:30 -05:00
LICENSE Added Django and React Template 2020-12-12 10:25:30 -05:00
Link.js Added Django and React Template 2020-12-12 10:25:30 -05:00
matchPath.js Added Django and React Template 2020-12-12 10:25:30 -05:00
MemoryRouter.js Added Django and React Template 2020-12-12 10:25:30 -05:00
NavLink.js Added Django and React Template 2020-12-12 10:25:30 -05:00
package.json Added Django and React Template 2020-12-12 10:25:30 -05:00
Prompt.js Added Django and React Template 2020-12-12 10:25:30 -05:00
README.md Added Django and React Template 2020-12-12 10:25:30 -05:00
Redirect.js Added Django and React Template 2020-12-12 10:25:30 -05:00
Route.js Added Django and React Template 2020-12-12 10:25:30 -05:00
Router.js Added Django and React Template 2020-12-12 10:25:30 -05:00
StaticRouter.js Added Django and React Template 2020-12-12 10:25:30 -05:00
Switch.js Added Django and React Template 2020-12-12 10:25:30 -05:00
warnAboutDeprecatedCJSRequire.js Added Django and React Template 2020-12-12 10:25:30 -05:00
withRouter.js Added Django and React Template 2020-12-12 10:25:30 -05: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.