Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfc655f

Browse files
committed
Merge pull request facebook#3016 from hnordt/patch-1
Removing unnecessary returns
1 parent f7b0647 commit bfc655f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/docs/tutorial.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ var CommentForm = React.createClass({
482482

483483
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.
484484

485-
```javascript{3-14,17-20}
485+
```javascript{3-13,16-19}
486486
// tutorial16.js
487487
var CommentForm = React.createClass({
488488
handleSubmit: function(e) {
@@ -495,7 +495,6 @@ var CommentForm = React.createClass({
495495
// TODO: send request to the server
496496
this.refs.author.getDOMNode().value = '';
497497
this.refs.text.getDOMNode().value = '';
498-
return;
499498
},
500499
render: function() {
501500
return (
@@ -577,7 +576,6 @@ var CommentForm = React.createClass({
577576
this.props.onCommentSubmit({author: author, text: text});
578577
this.refs.author.getDOMNode().value = '';
579578
this.refs.text.getDOMNode().value = '';
580-
return;
581579
},
582580
render: function() {
583581
return (

0 commit comments

Comments
 (0)