Skip to content

Instantly share code, notes, and snippets.

@lazorfuzz
Last active December 13, 2018 13:21
Show Gist options
  • Save lazorfuzz/8b5927e83442edba478039e0f8d6354f to your computer and use it in GitHub Desktop.
Save lazorfuzz/8b5927e83442edba478039e0f8d6354f to your computer and use it in GitHub Desktop.
render() {
const { chatLog, options } = this.state;
return (
<div className="App">
<LioWebRTC
options={options}
onReady={this.join}
onCreatedPeer={this.handleCreatedPeer}
onReceivedPeerData={this.handlePeerData}
>
<ChatBox
chatLog={chatLog}
onSend={(msg) => msg && this.addChat('Me', msg)}
/>
</LioWebRTC>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment