react-router
Declarative routing for React
Last updated 3 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.0.1                                ...           latest (3 months ago)
  • 3.2.4                                ...           previous (23 days ago)

135 Versions

  • 3.2.4                                ...           23 days ago
  • 3.2.3                                ...           3 months ago
  • 3.2.2                                ...           3 months ago
  • 5.0.1                                ...           3 months ago
  • 5.0.0                                ...           6 months ago
  • 4.4.0-beta.8                                ...           6 months ago
  • 4.4.0-beta.7                                ...           6 months ago
  • 4.4.0-beta.6                                ...           10 months 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                                ...           a year ago
  • 4.4.0-alpha.0                                ...           a year ago
  • 4.3.1                                ...           a year ago
  • 4.3.0                                ...           a year ago
  • 4.3.0-rc.3                                ...           a year ago
  • 4.3.0-rc.2                                ...           a year ago
  • 4.3.0-rc.1                                ...           a year ago
  • 3.2.1                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.0-rc.1                                ...           2 years ago
  • 4.2.0                                ...           2 years ago
  • 4.1.2                                ...           2 years ago
  • 3.0.6-pre.0                                ...           2 years ago
  • 4.1.1                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 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                                ...           3 years ago
  • 3.0.0-alpha.3                                ...           3 years ago
  • 2.6.1                                ...           3 years ago
  • 3.0.0-alpha.2                                ...           3 years ago
  • 2.6.0                                ...           3 years ago
  • 0.13.6                                ...           3 years ago
  • 2.5.2                                ...           3 years ago
  • 2.5.1                                ...           3 years ago
  • 2.5.0                                ...           3 years ago
  • 3.0.0-alpha.1                                ...           3 years ago
  • 2.4.1                                ...           3 years ago
  • 2.4.0                                ...           3 years ago
  • 2.3.0                                ...           3 years ago
  • 2.2.4                                ...           3 years ago
  • 2.2.2                                ...           3 years ago
  • 2.2.1                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 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                                ...           4 years ago
  • 1.0.0-beta2                                ...           4 years ago
  • 1.0.0-beta1                                ...           4 years ago
  • 1.0.0-alpha2                                ...           4 years ago
  • 1.0.0-alpha1                                ...           4 years ago
  • 0.13.3                                ...           4 years ago
  • 0.13.2                                ...           4 years ago
  • 0.13.1                                ...           4 years ago
  • 0.13.0                                ...           4 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                                ...           5 years ago
  • 0.5.2                                ...           5 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.2                                ...           5 years ago
  • 0.4.1                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
  • 0.0.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 768
This Week 25,423
This Month 58,830
Last Day 793
Last Week 32,205
Last Month 143,021
Dependencies (10)
Dependents (4967)

Copyright 2014 - 2016 © taobao.org |