JSFiddle - React, Tailwind, and code Playground

by richardneililagan

JavaScript

jQuery(function($) {

    var foo = function() {

        // do stuff
        //
        // schedule another run of this function
        setTimeout(foo, 1000);

    };
    
    // start the first iteration
    setTimeout(foo, 1000);

}