combatch / twitch-chat-enhanced

A custom chat window with extra features to increase user interaction with viewers
2 stars 1 forks source link

Create <ChatMessage> Component #1

Closed paOol closed 3 years ago

paOol commented 3 years ago

instead of

 {messages.map((x: Chat, i: number) => {
    <p key= ...  > asdfa </p>

there should be a component that takes in the props ( {message;Chat} )

so that the code is cleaner in Home() and to allow further customization in the chatmessage component.

it should look something like

 {messages.map((x: Chat, i: number) => {
   <ChatMessage data={x} />
 })