text: import React, { Component } from 'react';
  
  export default class CommentBox extends Component {
    constructor(props) {
      super(props);
      this.state = { comment: '' };
    }
  
    handleChange(event) {
      this.setState({ comment: event.target.value });
    }
  
    handleSubmit(event) {
      event.preventDefault();
  
      this.setState({ comment: '' });
    }
  
    render() {
      return (
        <form onSubmit={this.handleSubmit.bind(this)} className="comment-box">
          <textarea
            value={this.state.comment}
            onChange={this.handleChange.bind(this)}
          />
          <button type="submit">Submit Comment</button>
        </form>
      );
    }
  }