Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/02 Components/Link.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ applies its `activeClassName` and/or `activeStyle` when it is.
Props
-----

### `href`
### `to`

The path to link to, ie `/users/123`.
The path to link to, e.g., `/users/123`.

### `query`

An object of key:value pairs to be stingified.
An object of key:value pairs to be stringified.

### `activeClassName`

Expand Down
2 changes: 1 addition & 1 deletion examples/auth-flow/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var Login = React.createClass({

var { location } = this.props;

if (location.query && location.state.nextPathname) {
if (location.state && location.state.nextPathname) {
this.replaceWith(location.state.nextPathname);
} else {
this.replaceWith('/about');
Expand Down
6 changes: 3 additions & 3 deletions modules/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ function isModifiedEvent(event) {
*
* You could use the following component to link to that route:
*
* <Link to="showPost" params={{ postID: "123" }} />
* <Link to={`/posts/${post.id}`} />
*
* In addition to params, links may pass along query string parameters
* Links may pass along query string parameters
* using the `query` prop.
*
* <Link to="showPost" params={{ postID: "123" }} query={{ show:true }}/>
* <Link to="/posts/123" query={{ show:true }}/>
*/
export var Link = React.createClass({

Expand Down