Skip to content

Instantly share code, notes, and snippets.

@bookercodes
Created April 21, 2018 20:11
Show Gist options
  • Save bookercodes/0041bbccba3750110a10e4968f897aec to your computer and use it in GitHub Desktop.
Save bookercodes/0041bbccba3750110a10e4968f897aec to your computer and use it in GitHub Desktop.
render() {
return (
<div
style={{
display: 'flex',
height: '100vh',
}}
>
<div
style={{
width: '30%',
backgroundColor: 'tomato',
}}
>
<h2>Who's Online</h2>
</div>
<div
style={{
display: 'flex',
flexDirection: 'column',
}}
>
<h2>Chat</h2>
<div
style={{
flex: 1,
}}
>
<MessageList messages={this.state.messages} />
</div>
<TypingIndicator usersWhoAreTyping={this.state.usersWhoAreTyping} />
<SendMessageForm
onSubmit={this.sendMessage}
onChange={this.sendTypingEvent}
/>
</div>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment