react-router
Declarative routing for React
Last updated 5 months ago by mjackson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-router 
SYNC missed versions from official npm registry.

react-router

Declarative routing for React.

Installation

Using npm:

$ npm install --save react-router

Note: This package provides the core routing functionality for React Router, but you might not want to install it directly. If you are writing an application that will run in the browser, you should instead install react-router-dom. Similarly, if you are writing a React Native application, you should instead install react-router-native. Both of those will install react-router as a dependency.

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

// using ES6 modules
import { Router, Route, Switch } from "react-router";

// using CommonJS modules
var Router = require("react-router").Router;
var Route = require("react-router").Route;
var Switch = require("react-router").Switch;

The UMD build is also available on unpkg:

<script src="https://unpkg.com/react-router/umd/react-router.min.js"></script>

You can find the library on window.ReactRouter.

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.

Current Tags

  • 5.1.2                                ...           latest (5 months ago)
  • 6.0.0-alpha.2                                ...           next (4 days ago)
  • 3.2.5                                ...           previous (4 months ago)

142 Versions

  • 6.0.0-alpha.2                                ...           4 days ago
  • 6.0.0-alpha.1                                ...           25 days ago
  • 6.0.0-alpha.0                                ...           25 days ago
  • 3.2.5                                ...           4 months ago
  • 5.1.2                                ...           5 months ago
  • 5.1.1                                ...           5 months ago
  • 5.1.0                                ...           5 months ago
  • 3.2.4                                ...           6 months ago
  • 3.2.3                                ...           8 months ago
  • 3.2.2                                ...           8 months ago
  • 5.0.1                                ...           9 months ago
  • 5.0.0                                ...           a year ago
  • 4.4.0-beta.8                                ...           a year ago
  • 4.4.0-beta.7                                ...           a year ago
  • 4.4.0-beta.6                                ...           a year ago
  • 4.4.0-beta.5                                ...           a year ago
  • 4.4.0-beta.4                                ...           a year ago
  • 4.4.0-beta.3                                ...           a year ago
  • 4.4.0-beta.2                                ...           a year ago
  • 4.4.0-beta.1                                ...           a year ago
  • 4.4.0-beta.0                                ...           a year ago
  • 4.4.0-alpha.1                                ...           2 years ago
  • 4.4.0-alpha.0                                ...           2 years ago
  • 4.3.1                                ...           2 years ago
  • 4.3.0                                ...           2 years ago
  • 4.3.0-rc.3                                ...           2 years ago
  • 4.3.0-rc.2                                ...           2 years ago
  • 4.3.0-rc.1                                ...           2 years ago
  • 3.2.1                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.0-rc.1                                ...           2 years ago
  • 4.2.0                                ...           3 years ago
  • 4.1.2                                ...           3 years ago
  • 3.0.6-pre.0                                ...           3 years ago
  • 4.1.1                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 3.0.5                                ...           3 years ago
  • 3.0.4                                ...           3 years ago
  • 3.0.3                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 4.0.0-beta.8                                ...           3 years ago
  • 4.0.0-beta.7                                ...           3 years ago
  • 4.0.0-beta.6                                ...           3 years ago
  • 4.0.0-beta.5                                ...           3 years ago
  • 4.0.0-beta.4                                ...           3 years ago
  • 4.0.0-beta.3                                ...           3 years ago
  • 4.0.0-beta.2                                ...           3 years ago
  • 4.0.0-beta.1                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 4.0.0-alpha.6                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 4.0.0-alpha.5                                ...           3 years ago
  • 4.0.0-alpha.4                                ...           3 years ago
  • 4.0.0-alpha.3                                ...           3 years ago
  • 3.0.0-beta.1                                ...           3 years ago
  • 2.8.1                                ...           3 years ago
  • 4.0.0-2                                ...           3 years ago
  • 4.0.0-1                                ...           3 years ago
  • 4.0.0-0                                ...           3 years ago
  • 2.8.0                                ...           3 years ago
  • 2.7.0                                ...           4 years ago
  • 3.0.0-alpha.3                                ...           4 years ago
  • 2.6.1                                ...           4 years ago
  • 3.0.0-alpha.2                                ...           4 years ago
  • 2.6.0                                ...           4 years ago
  • 0.13.6                                ...           4 years ago
  • 2.5.2                                ...           4 years ago
  • 2.5.1                                ...           4 years ago
  • 2.5.0                                ...           4 years ago
  • 3.0.0-alpha.1                                ...           4 years ago
  • 2.4.1                                ...           4 years ago
  • 2.4.0                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.4                                ...           4 years ago
  • 2.2.2                                ...           4 years ago
  • 2.2.1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 2.0.0-rc6                                ...           4 years ago
  • 2.0.0-rc5                                ...           4 years ago
  • 2.0.0-rc4                                ...           4 years ago
  • 2.0.0-rc3                                ...           4 years ago
  • 2.0.0-rc2 [deprecated]           ...           4 years ago
  • 2.0.0-rc1                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 1.0.0-rc4                                ...           4 years ago
  • 0.13.5                                ...           4 years ago
  • 1.0.0-rc3                                ...           4 years ago
  • 1.0.0-rc2                                ...           4 years ago
  • 0.13.4                                ...           4 years ago
  • 1.0.0-rc1                                ...           4 years ago
  • 1.0.0-beta4                                ...           4 years ago
  • 1.0.0-beta3                                ...           5 years ago
  • 1.0.0-beta2                                ...           5 years ago
  • 1.0.0-beta1                                ...           5 years ago
  • 1.0.0-alpha2                                ...           5 years ago
  • 1.0.0-alpha1                                ...           5 years ago
  • 0.13.3                                ...           5 years ago
  • 0.13.2                                ...           5 years ago
  • 0.13.1                                ...           5 years ago
  • 0.13.0                                ...           5 years ago
  • 0.12.4                                ...           5 years ago
  • 0.12.3                                ...           5 years ago
  • 0.12.2                                ...           5 years ago
  • 0.12.1                                ...           5 years ago
  • 0.12.0                                ...           5 years ago
  • 0.11.6                                ...           5 years ago
  • 0.11.5                                ...           5 years ago
  • 0.11.4                                ...           5 years ago
  • 0.11.3                                ...           5 years ago
  • 0.11.2                                ...           5 years ago
  • 0.11.1                                ...           5 years ago
  • 0.11.0                                ...           5 years ago
  • 0.10.2                                ...           5 years ago
  • 0.10.1                                ...           5 years ago
  • 0.10.0                                ...           5 years ago
  • 0.9.5                                ...           5 years ago
  • 0.9.4                                ...           5 years ago
  • 0.9.3                                ...           5 years ago
  • 0.9.2                                ...           5 years ago
  • 0.9.1                                ...           5 years ago
  • 0.9.0                                ...           5 years ago
  • 0.8.0                                ...           5 years ago
  • 0.7.0                                ...           5 years ago
  • 0.6.1                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.3                                ...           6 years ago
  • 0.5.2                                ...           6 years ago
  • 0.5.1                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
  • 0.4.2                                ...           6 years ago
  • 0.4.1                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
  • 0.0.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 282
This Week 13,256
This Month 115,784
Last Day 6,345
Last Week 36,058
Last Month 114,416
Dependencies (10)
Dev Dependencies (0)
None
Dependents (5420)

Copyright 2014 - 2016 © taobao.org |