2021年1月17日星期日

How to apply Break lines in React Modal?

As title.
I have an array that contains some messages that I want to show to End user:

var Errors=[      "Your name is empty!",      "Your tags are empty!",      "No zip files to upload!",  ];  

How could I use the Modal.error call and show a dialog with break lines:

Your name is empty!
Your tags are empty!
No zip files to upload!

That is one line for a string in the array? I've tried use <br /> to the Errors.join() function call and I see the less than and great than marks; I've tried to use "\r\n" to Errors.join() but I havent' got the effects.
Sorry about that English is not my mother language. I could add some information that I didn't provide yet.

https://stackoverflow.com/questions/65767590/how-to-apply-break-lines-in-react-modal January 18, 2021 at 08:58AM

没有评论:

发表评论