JSFiddle - React, Tailwind, and code Playground
by dshilkret
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/ui-lightness/jquery-ui.css">
<div id="dialog" style="display:none;">
</div>
JavaScript
$('#dialog').html('some message');
$('#dialog').dialog({
autoOpen: true,
show: "blind",
hide: "explode",
modal: true,
open: function(event, ui) {
setTimeout(function(){
$('#dialog').dialog('close');
}, 3000);
}
});