The Message object is the standard class for handling message data in react-chat-ui.
id of a message is a number used to identify which user created the message. It’s used for grouping messages together and determining the bubble colour. (This may be renamed in the future)id, although your id’s will be unique, users may have the same name)const myMessage = new Message(1, 'Hello World!', 'Elon Musk');
const anotherMessage = new Message(0, 'Hey Elon!');