JSFiddle - React, Tailwind, and code Playground
JavaScript
// setInterval() method of jquery
/* The setInterval() method calls a function or evaluates an expression at specified intervals (in milliseconds) */
var alert = function (str) {
var st = document.createTextNode(str);
var p = document.createElement('p');
p.appendChild(st);
document.querySelector('body').appendChild(p);
}
setInterval(function(){alert("Hello")}, 2000);