I am making a chat app and the message has a classname of the current user's username. And I want if a user send a message to appear in blue while if the other one send one to appear in red.
So I wanna do something like this:
{currentUser.username} {
background:red
}
Via Active questions tagged javascript - Stack Overflow https://ift.tt/rPiZBUt
Comments
Post a Comment