File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Installation
3131------------
3232
3333``` sh
34- npm install react-nested- router
34+ npm install react-router
3535# or
3636bower install react-router
3737```
4747-----
4848
4949```
50- var Route = require('react-nested- router').Route;
50+ var Route = require('react-router').Route;
5151
5252React.renderComponent((
5353 <Route handler={App}>
@@ -88,7 +88,7 @@ will render the active child route handler.
8888Here's the rest of the application:
8989
9090``` js
91- var Link = require (' react-nested- router' ).Link ;
91+ var Link = require (' react-router' ).Link ;
9292
9393var App = React .createClass ({
9494 render : function () {
@@ -339,7 +339,7 @@ active -->
339339The router has several top-level methods that may be used to navigate around the application.
340340
341341``` js
342- var Router = require (' react-nested- router' )
342+ var Router = require (' react-router' )
343343```
344344
345345** transitionTo(routeNameOrPath, [ params[ , query]] )** - Programatically transition to a new route.
Original file line number Diff line number Diff line change 11{
2- "name" : " react-nested- router" ,
2+ "name" : " react-router" ,
33 "version" : " 0.3.5" ,
4- "homepage" : " https://github.com/rpflorence/react-nested- router" ,
4+ "homepage" : " https://github.com/rpflorence/react-router" ,
55 "authors" : [
66 " Ryan Florence" ,
77 " Michael Jackson"
2626 " package.json" ,
2727 " webpack.config.js"
2828 ]
29- }
29+ }
Original file line number Diff line number Diff line change 11{
2- "name" : " react-nested- router" ,
2+ "name" : " react-router" ,
33 "version" : " 0.3.5" ,
44 "description" : " A complete routing library for React.js" ,
55 "tags" : [
99 "main" : " modules/main" ,
1010 "repository" : {
1111 "type" : " git" ,
12- "url" : " https://github.com/rpflorence/react-nested- router.git"
12+ "url" : " https://github.com/rpflorence/react-router.git"
1313 },
14- "homepage" : " https://github.com/rpflorence/react-nested- router" ,
14+ "homepage" : " https://github.com/rpflorence/react-router" ,
1515 "directories" : {
1616 "example" : " examples"
1717 },
5454 "browserify-shim" : {
5555 "react" : " global:React"
5656 }
57- }
57+ }
You can’t perform that action at this time.
0 commit comments