JSFiddle - React, Tailwind, and code Playground

by websippetz

HTML

<button id="submit">Submit</button>

JavaScript

jQuery(document).ready(function () {
    jQuery('#submit').click(function(){
        var T = setTimeout(showAlert, 3000);
    });
});

function showAlert(){
    alert("I've fired after 3 seconds");
}