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