Skip to content

Instantly share code, notes, and snippets.

@jetaggart
Created July 12, 2020 22:39
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 jetaggart/e4bd8263eeb838fca616ecb8f0d3ed2d to your computer and use it in GitHub Desktop.
Save jetaggart/e4bd8263eeb838fca616ecb8f0d3ed2d to your computer and use it in GitHub Desktop.
// frontend/src/App.js:45
if (chatClient && channel) {
return (
<div className="App">
<Chat client={chatClient} theme={'messaging light'}>
<Channel channel={channel}>
<Window>
<ChannelHeader />
<MessageList />
<MessageInput />
</Window>
<Thread />
</Channel>
</Chat>
</div>
)
} else {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment