File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,24 @@ React Router API
3
3
4
4
- [ ` Router ` ] ( /docs/api/Router.md )
5
5
6
+ - [ ` Router.run ` ] ( /docs/api/run.md )
7
+
8
+ - [ ` Router.create ` ] ( /docs/api/create.md )
9
+
6
10
- Components
7
11
- [ ` DefaultRoute ` ] ( /docs/api/components/DefaultRoute.md )
8
12
- [ ` Link ` ] ( /docs/api/components/Link.md )
9
13
- [ ` NotFoundRoute ` ] ( /docs/api/components/NotFoundRoute.md )
10
14
- [ ` Redirect ` ] ( /docs/api/components/Redirect.md )
11
15
- [ ` Route ` ] ( /docs/api/components/Route.md )
12
16
- [ ` RouteHandler ` ] ( /docs/api/components/RouteHandler.md )
13
- - [ ` Routes ` ] ( /docs/api/components/Routes.md )
14
17
15
18
- Mixins
16
19
- [ ` State ` ] ( /docs/api/mixins/State.md )
17
20
- [ ` Navigation ` ] ( /docs/api/mixins/Navigation.md )
18
21
19
22
- Misc
23
+ - [ ` Location ` ] ( /docs/api/misc/Location.md )
20
24
- [ ` transition ` ] ( /docs/api/misc/transition.md )
21
25
22
26
Public Modules
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Your route config. See [Route][1]
19
19
20
20
### ` location ` optional
21
21
22
- Defaults to [ ` Router.HashLocation ` ] [ 2 ] . If given a ` Location ` object, it
22
+ Defaults to ` Router.HashLocation ` . If given a ` Location ` object, it
23
23
will setup and listen for changes on it, if given a string path, the
24
24
router will immediately match that path and callback.
25
25
@@ -57,10 +57,10 @@ An object containing the matched state.
57
57
58
58
##### ` state.matches `
59
59
60
- An array of the matched [ routes] [ 3 ] . Very useful for fetching data before
60
+ An array of the matched [ routes] [ 1 ] . Very useful for fetching data before
61
61
rendering.
62
62
63
- See also: [ Route] [ 3 ] .
63
+ See also: [ Route] [ 1 ] .
64
64
65
65
##### ` state.params `
66
66
@@ -87,7 +87,7 @@ Router.run(routes, function (Handler) {
87
87
```
88
88
89
89
Sample data fetching using ` state.matches ` . Check out the
90
- [ async-data] [ 4 ] example.
90
+ [ async-data] [ 2 ] example.
91
91
92
92
``` js
93
93
var resolveHash = require (' when/keys' ).all ;
@@ -137,7 +137,5 @@ something.serve(function (req, res) {
137
137
```
138
138
139
139
[ 1 ] :./components/Route.md
140
- [ 2 ] :./locations/HashLocation.md
141
- [ 3 ] :./classes/Route.md
142
- [ 4 ] :https://github.com/rackt/react-router/tree/latest/examples/async-data
140
+ [ 2 ] :https://github.com/rackt/react-router/tree/latest/examples/async-data
143
141
Original file line number Diff line number Diff line change @@ -357,8 +357,8 @@ Scrolling
357
357
By default, the router will manage the scroll position between route
358
358
transitions. When a user clicks "back" or "forward", it will restore
359
359
their scroll position. If they visit a new route, it will automatically
360
- scroll the window to the top. You can configure this options on
361
- [ Routes ] [ Routes ] .
360
+ scroll the window to the top. You can configure this option with
361
+ [ Router.create ] [ create ] .
362
362
363
363
Bells and Whistles
364
364
------------------
@@ -418,7 +418,7 @@ redirecting transitions, query parameters and more.
418
418
419
419
[ AsyncState ] :../api/mixins/AsyncState.md
420
420
[ Route ] :../api/components/Route.md
421
- [ Routes ] : ../api/components/Routes .md
421
+ [ create ] : ../api/create .md
422
422
[ API ] :../api/
423
423
[ path-matching ] :./path-matching.md
424
424
You can’t perform that action at this time.
0 commit comments