text: import React from 'react';
  import ReactDOM from 'react-dom';
  
  class App extends React.Component {
      constructor(props) {
          super(props);
          this.state = {
              name: '',
              tasks: []
          };
          this.handleChange = this.handleChange.bind(this);
      }
  
      handleChange (e) {
          this.setState ({
              name: e.target.value
          });
          console.log('onChange', this.state.name);
      }
      render () {
          return (
              <div className="container">
                  <div className="row justify-content-center">
                      <div className="col-md-8">
                          <div className="card">
                              <div className="card-header">Create Task</div>
                              <div className="card-body">
                                  <form>
                                      <div className="form-group">
                                          <textarea
                                              onChange={this.handleChange}
                                              value={this.state.name}
                                              className="form-control"
                                              rows="5"
                                              maxLength="255"
                                              placeholder="Create a new task"
                                              required
                                          />
                                      </div>
                                      <button type="submit" className="btn btn-primary">
                                          Create Task
                                      </button>
                                  </form>
                              </div>
                          </div>
                      </div>
                  </div>
              </div>
          );
      }
  }
  
  export default App;
  
  if (document.getElementById('root')) {
      ReactDOM.render(<App />, document.getElementById('root'));
  }
  