File tree 3 files changed +11
-11
lines changed
3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Installation
31
31
------------
32
32
33
33
``` sh
34
- npm install react-nested- router
34
+ npm install react-router
35
35
# or
36
36
bower install react-router
37
37
```
47
47
-----
48
48
49
49
```
50
- var Route = require('react-nested- router').Route;
50
+ var Route = require('react-router').Route;
51
51
52
52
React.renderComponent((
53
53
<Route handler={App}>
@@ -88,7 +88,7 @@ will render the active child route handler.
88
88
Here's the rest of the application:
89
89
90
90
``` js
91
- var Link = require (' react-nested- router' ).Link ;
91
+ var Link = require (' react-router' ).Link ;
92
92
93
93
var App = React .createClass ({
94
94
render : function () {
@@ -339,7 +339,7 @@ active -->
339
339
The router has several top-level methods that may be used to navigate around the application.
340
340
341
341
``` js
342
- var Router = require (' react-nested- router' )
342
+ var Router = require (' react-router' )
343
343
```
344
344
345
345
** transitionTo(routeNameOrPath, [ params[ , query]] )** - Programatically transition to a new route.
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " react-nested- router" ,
2
+ "name" : " react-router" ,
3
3
"version" : " 0.3.5" ,
4
- "homepage" : " https://github.com/rpflorence/react-nested- router" ,
4
+ "homepage" : " https://github.com/rpflorence/react-router" ,
5
5
"authors" : [
6
6
" Ryan Florence" ,
7
7
" Michael Jackson"
26
26
" package.json" ,
27
27
" webpack.config.js"
28
28
]
29
- }
29
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " react-nested- router" ,
2
+ "name" : " react-router" ,
3
3
"version" : " 0.3.5" ,
4
4
"description" : " A complete routing library for React.js" ,
5
5
"tags" : [
9
9
"main" : " modules/main" ,
10
10
"repository" : {
11
11
"type" : " git" ,
12
- "url" : " https://github.com/rpflorence/react-nested- router.git"
12
+ "url" : " https://github.com/rpflorence/react-router.git"
13
13
},
14
- "homepage" : " https://github.com/rpflorence/react-nested- router" ,
14
+ "homepage" : " https://github.com/rpflorence/react-router" ,
15
15
"directories" : {
16
16
"example" : " examples"
17
17
},
54
54
"browserify-shim" : {
55
55
"react" : " global:React"
56
56
}
57
- }
57
+ }
You can’t perform that action at this time.
0 commit comments