Skip to content

Commit 5d674c9

Browse files
committed
Merge pull request #1311 from clearjs/master
Fixed incomplete edits
2 parents 2d29e91 + 22511ed commit 5d674c9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/02 Components/Link.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ applies its `activeClassName` and/or `activeStyle` when it is.
77
Props
88
-----
99

10-
### `href`
10+
### `to`
1111

12-
The path to link to, ie `/users/123`.
12+
The path to link to, e.g., `/users/123`.
1313

1414
### `query`
1515

16-
An object of key:value pairs to be stingified.
16+
An object of key:value pairs to be stringified.
1717

1818
### `activeClassName`
1919

examples/auth-flow/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var Login = React.createClass({
7676

7777
var { location } = this.props;
7878

79-
if (location.query && location.state.nextPathname) {
79+
if (location.state && location.state.nextPathname) {
8080
this.replaceWith(location.state.nextPathname);
8181
} else {
8282
this.replaceWith('/about');

modules/Link.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ function isModifiedEvent(event) {
2121
*
2222
* You could use the following component to link to that route:
2323
*
24-
* <Link to="showPost" params={{ postID: "123" }} />
24+
* <Link to={`/posts/${post.id}`} />
2525
*
26-
* In addition to params, links may pass along query string parameters
26+
* Links may pass along query string parameters
2727
* using the `query` prop.
2828
*
29-
* <Link to="showPost" params={{ postID: "123" }} query={{ show:true }}/>
29+
* <Link to="/posts/123" query={{ show:true }}/>
3030
*/
3131
export var Link = React.createClass({
3232

0 commit comments

Comments
 (0)