-
-
Save BrightnBubbly/f0e6762c26d5a08fa257112e7d4f26dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{messageData.map((message)=>{ | |
return( | |
<div key={message.id} className={`row msg_container ${message.user.id == 'admin' ? 'base_sent': 'base_receive'}`}> | |
<div className="col-md-10 col-xs-10"> | |
<div className="messages msg_sent"> | |
<p>{message.text}</p> | |
<time dateTime={message.created_at}>{message.user.name}</time> | |
</div> | |
</div> | |
</div> | |
); | |
})} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment