Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yetieaterxb1 committed May 10, 2021
1 parent a734587 commit 9044d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ As of version `5.0.0` `stream-chat-react` has been converted to TypeScript. Plea

## Component Reusability

If a component implements a ton of logic, it's helpful if you split it out into two parts: The top-level component, which handles all the logic, and a lower level component, which handles rendering. That makes it easy to change the rendering without having to touch the other stuff. Have a look at Message and MessageSimple to see how this approach works.
If a component implements a ton of logic, it's helpful if you split it out into two parts: The top-level component, which handles all the logic, and a lower level component, which handles rendering. That makes it easy to change the rendering without having to touch the other stuff. Have a look at Message and MessageTeam to see how this approach works.

```jsx
<Channel>
<Window>
<ChannelHeader />
<MessageList Message={MessageSimple}/>
<MessageList Message={MessageTeam}/>
<MessageInput />
</Window>
<Thread />
Expand Down

0 comments on commit 9044d54

Please sign in to comment.