JSFiddle - React, Tailwind, and code Playground
JavaScript
constructor(props) {
super(props);
this.state = {
newMessage: '', messages: []
};
this.subs = [];
this.addMessage = this.addMessage.bind(this);
this.handleMessageChange = this.handleMessageChange.bind(this);
}