outaozhen bb52c63d7d 库提交 hace 5 años
..
cjs 9778140fc2 测试提交 hace 5 años
es 9778140fc2 测试提交 hace 5 años
esm 9778140fc2 测试提交 hace 5 años
modules 9778140fc2 测试提交 hace 5 años
umd 9778140fc2 测试提交 hace 5 años
BrowserRouter.js 9778140fc2 测试提交 hace 5 años
HashRouter.js 9778140fc2 测试提交 hace 5 años
LICENSE 9778140fc2 测试提交 hace 5 años
Link.js 9778140fc2 测试提交 hace 5 años
MemoryRouter.js 9778140fc2 测试提交 hace 5 años
NavLink.js 9778140fc2 测试提交 hace 5 años
Prompt.js 9778140fc2 测试提交 hace 5 años
README.md 9778140fc2 测试提交 hace 5 años
Redirect.js 9778140fc2 测试提交 hace 5 años
Route.js 9778140fc2 测试提交 hace 5 años
Router.js 9778140fc2 测试提交 hace 5 años
StaticRouter.js 9778140fc2 测试提交 hace 5 años
Switch.js 9778140fc2 测试提交 hace 5 años
generatePath.js 9778140fc2 测试提交 hace 5 años
index.js 9778140fc2 测试提交 hace 5 años
matchPath.js 9778140fc2 测试提交 hace 5 años
package.json bb52c63d7d 库提交 hace 5 años
warnAboutDeprecatedCJSRequire.js 9778140fc2 测试提交 hace 5 años
withRouter.js 9778140fc2 测试提交 hace 5 años

README.md

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.