JSFiddle - React, Tailwind, and code Playground

JavaScript

var str = "[email protected];[email protected];[email protected];[email protected]";

var newstr = str.split(";");

for(i=0; i<newstr.length; i++) {
    document.write(newstr[i]+"<br/>");
}