Skip to content

Commit 81b7406

Browse files
author
Roman Boiko
committed
Updated Link's doc comment.
Link doesn't accept params anymore.
1 parent 7cc4a5e commit 81b7406

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)