Browse Source

Removing unnecessary returns

main
Héliton Nordt 10 years ago
parent
commit
0f27514cef
  1. 2
      docs/tutorial.md

2
docs/tutorial.md

@ -495,7 +495,6 @@ var CommentForm = React.createClass({
// TODO: send request to the server // TODO: send request to the server
this.refs.author.getDOMNode().value = ''; this.refs.author.getDOMNode().value = '';
this.refs.text.getDOMNode().value = ''; this.refs.text.getDOMNode().value = '';
return;
}, },
render: function() { render: function() {
return ( return (
@ -577,7 +576,6 @@ var CommentForm = React.createClass({
this.props.onCommentSubmit({author: author, text: text}); this.props.onCommentSubmit({author: author, text: text});
this.refs.author.getDOMNode().value = ''; this.refs.author.getDOMNode().value = '';
this.refs.text.getDOMNode().value = ''; this.refs.text.getDOMNode().value = '';
return;
}, },
render: function() { render: function() {
return ( return (

Loading…
Cancel
Save