Open AmzylMohcine opened 3 years ago
I had this issue but when I opened it the next day, the issue disappeared. I think restart your computer may help.
<div className="message" style={{float:'right' , marginRight:'18px',color:'white' , backgroundColor :'#3B2A50'}}>
{message.text}
</div>
While saving file .js, message.text will contain "<p><our message></p>"
. And that is the reason our message is rendered with<p>.....</p> tag
. Give a try by saving files all the respective files with .jsx
this is the code of MyMessage :
const MyMessage = ({message}) => { if (message.attachments && message.attachments.length>0) {
};
export default MyMessage ;
This is the code of Chatfeed :
import MessageForm from './MessageForm' ; import MyMessage from './MyMessage' ; import TheirMessage from './TheirMessage' ; const ChatFeed = (props) => { const { chats , activeChat , userName , messages} = props ;
}
export default ChatFeed ;