JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.8.6/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.8.6/umd/react-dom.production.min.js"></script>
<div id='root'></div>

Babel + JSX

class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      comment: ''
    }
  }

  getValue = e => {
    this.setState({comment: e.target.value})
  }
  
  render() {
  	return (
	<div>
		<textarea
			type="text"
			value={this.state.comment}
			onChange={this.getValue}
		/>
		<div>this.state.comment: {this.state.comment}</div>		
	</div>
	)
  }
}

ReactDOM.render(
  <App />,
  document.getElementById('root')
);