Skip to content

Instantly share code, notes, and snippets.

import React, { Component } from 'react';
import './App.css';
import ChatBox from './ChatBox';
class App extends Component {
constructor(props) {
super(props);
this.state = {
chatLog: []
}
render() {
const { chatLog, options } = this.state;
return (
<div className="App">
<LioWebRTC
options={options}
onReady={this.join}
onCreatedPeer={this.handleCreatedPeer}
onReceivedPeerData={this.handlePeerData}
>