JSFiddle - React, Tailwind, and code Playground

by Kevin Faulhaber

JavaScript

var a = (function () {
        setTimeout(function () {
            a();
        }, 1000);
    return function () {
        alert('this should loop forever');
        a();
    };
})();