File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ applies its `activeClassName` and/or `activeStyle` when it is.
7
7
Props
8
8
-----
9
9
10
- ### ` href `
10
+ ### ` to `
11
11
12
- The path to link to, ie ` /users/123 ` .
12
+ The path to link to, e.g., ` /users/123 ` .
13
13
14
14
### ` query `
15
15
16
- An object of key: value pairs to be stingified .
16
+ An object of key: value pairs to be stringified .
17
17
18
18
### ` activeClassName `
19
19
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ var Login = React.createClass({
76
76
77
77
var { location } = this . props ;
78
78
79
- if ( location . query && location . state . nextPathname ) {
79
+ if ( location . state && location . state . nextPathname ) {
80
80
this . replaceWith ( location . state . nextPathname ) ;
81
81
} else {
82
82
this . replaceWith ( '/about' ) ;
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ function isModifiedEvent(event) {
21
21
*
22
22
* You could use the following component to link to that route:
23
23
*
24
- * <Link to="showPost" params={{ postID: "123" } } />
24
+ * <Link to={`/posts/${post.id}` } />
25
25
*
26
- * In addition to params, links may pass along query string parameters
26
+ * Links may pass along query string parameters
27
27
* using the `query` prop.
28
28
*
29
- * <Link to="showPost" params={{ postID: " 123" }} query={{ show:true }}/>
29
+ * <Link to="/posts/ 123" query={{ show:true }}/>
30
30
*/
31
31
export var Link = React . createClass ( {
32
32
You can’t perform that action at this time.
0 commit comments