JSFiddle - React, Tailwind, and code Playground

by Esteban Herrera

JavaScript

constructor(props) {
  super(props);
  this.state = {
    newMessage: '', messages: []
  };
  this.subs = [];
  this.addMessage = this.addMessage.bind(this);
  this.handleMessageChange = this.handleMessageChange.bind(this);
}