JSFiddle - React, Tailwind, and code Playground
by heera
HTML
<div id="overrideAlert"></div>
JavaScript
window.alert = function(message) {
$('<div />').text(message).dialog({
modal:true,
title:'Message',
buttons: {
'OK':function(){
$(this).dialog('close');
}
},
close:function(){ $(this).dialog('destroy').remove(); }
});
};
alert("ok");