From bfc655f2c4fc1507ad1aadb0d75174b7dd111a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Tue, 3 Feb 2015 10:46:21 -0800 Subject: [PATCH] Merge pull request #3016 from hnordt/patch-1 Removing unnecessary returns --- docs/docs/tutorial.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index c46ecb7134..ed302860d5 100644 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -482,7 +482,7 @@ var CommentForm = React.createClass({ Let's make the form interactive. When the user submits the form, we should clear it, submit a request to the server, and refresh the list of comments. To start, let's listen for the form's submit event and clear it. -```javascript{3-14,17-20} +```javascript{3-13,16-19} // tutorial16.js var CommentForm = React.createClass({ handleSubmit: function(e) { @@ -495,7 +495,6 @@ var CommentForm = React.createClass({ // TODO: send request to the server this.refs.author.getDOMNode().value = ''; this.refs.text.getDOMNode().value = ''; - return; }, render: function() { return ( @@ -577,7 +576,6 @@ var CommentForm = React.createClass({ this.props.onCommentSubmit({author: author, text: text}); this.refs.author.getDOMNode().value = ''; this.refs.text.getDOMNode().value = ''; - return; }, render: function() { return (