Skip to content

Commit e41ecd4

Browse files
committed
doc updates
1 parent ca892fd commit e41ecd4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

doc/00 Guides/0 Overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Let's refactor our app to use React Router.
7070
```js
7171
// first we import some components
7272
import { Router, Route } from 'react-router';
73+
// the histories are imported separately for smaller builds
7374
import HashHistory from 'react-router/lib/HashHistory';
7475

7576
// ...

doc/02 Components/Route Component.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ and the url is `/users/123/portfolios/345` then `props.routeParams` will be
9595
`{userId: '123'}`, and `route.params` will be `{userId: '123',
9696
portfolioId: 345}`.
9797

98-
99-
### `query`
100-
101-
The query parameters of the url.
102-
10398
### `location`
10499

105100
The [location][location] matched.
@@ -121,8 +116,7 @@ Examples
121116
var Students = React.createClass({
122117
render () {
123118
this.props.params.courseId; // "123"
124-
this.props.query.sort; // "name"
125-
this.props.location; // { path: "/course/123/students?sort=name" }
119+
this.props.location.query.sort; // "name"
126120
// ...
127121
}
128122
});

0 commit comments

Comments
 (0)