diff --git a/doc/02 Components/Link.md b/doc/02 Components/Link.md index a223486c70..f162a188b4 100644 --- a/doc/02 Components/Link.md +++ b/doc/02 Components/Link.md @@ -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` diff --git a/examples/auth-flow/app.js b/examples/auth-flow/app.js index 2a9fc9b7b2..2b036e2043 100644 --- a/examples/auth-flow/app.js +++ b/examples/auth-flow/app.js @@ -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'); diff --git a/modules/Link.js b/modules/Link.js index 87506a8fed..11d892c6d5 100644 --- a/modules/Link.js +++ b/modules/Link.js @@ -21,12 +21,12 @@ function isModifiedEvent(event) { * * You could use the following component to link to that route: * - * + * * - * In addition to params, links may pass along query string parameters + * Links may pass along query string parameters * using the `query` prop. * - * + * */ export var Link = React.createClass({