From b24d241b82012e99a8b5cec196a843a655215cf0 Mon Sep 17 00:00:00 2001 From: Bob Eagan Date: Fri, 24 Jan 2014 08:52:00 -0700 Subject: [PATCH] replace "comments.json" with this.props.url --- docs/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index ef9ab61a..c9a51bd1 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -386,13 +386,13 @@ var CommentBox = React.createClass({ }, componentWillMount: function() { $.ajax({ - url: 'comments.json', + url: this.props.url, dataType: 'json', success: function(data) { this.setState({data: data}); }.bind(this), error: function(xhr, status, err) { - console.error("comments.json", status, err.toString()); + console.error(this.props.url, status, err.toString()); }.bind(this) }); },