import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; const Textarea = FRC.Textarea; const CommentEdit = React.createClass({ propTypes: { comment: React.PropTypes.object.isRequired, submitCallback: React.PropTypes.func, cancelCallback: React.PropTypes.func }, submitComment(data) { data = {$set: data}; Meteor.call("comments.edit", data, this.props.comment._id, (error, result) => { if (error) { // handle error } else { this.props.submitCallback(); } }); }, render() { return (