JSFiddle - React, Tailwind, and code Playground
by alirokni
HTML
<div id="id"></div>
JavaScript
String.prototype.repeat = function(no) {
var str='';
for (i = 0; i < no; i++) {
str += this+'\n';
}
return str;
};
$('#id').html('hello'.repeat(5));