|
@@ -49,7 +49,7 @@ let CommentForm = React.createClass({
|
|
if (!text || !author) {
|
|
if (!text || !author) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- // TODO send request to the server.
|
|
|
|
|
|
+ this.props.onCommentSubmit({ author: author, text: text });
|
|
this.setState({ author: '', text: '' });
|
|
this.setState({ author: '', text: '' });
|
|
},
|
|
},
|
|
handleTextChange: function (e) {
|
|
handleTextChange: function (e) {
|