Skip to content

Instantly share code, notes, and snippets.

@pmbanugo
Created December 23, 2019 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmbanugo/07a9433b9ac5754bdb9e14c5bd354bae to your computer and use it in GitHub Desktop.
Save pmbanugo/07a9433b9ac5754bdb9e14c5bd354bae to your computer and use it in GitHub Desktop.
constructor(props) {
super(props);
this.user = undefined;
this.bot = { id: "0", name: "bot" };
this.state = {
messages: [
{
author: this.bot,
timestamp: new Date(),
text: "Hello! Please enter a name in order to start a chat"
}
]
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment