JSFiddle - React, Tailwind, and code Playground

by eddiemonge

JavaScript

window.alert = function(message, title) {
        var dialog = $('<div/>').attr('title', title || '').css('white-space', 'pre-line').html(message)
        dialog.dialog({
            width: 355,
            height: 'auto',
            minWidth: 250,
            minHeight: 50,
            maxHeight: 8000,
            disableMinimize: true,
            modal: true,
            zIndex: 999990,
            security: false,
            buttons: { ok: function() { dialog.dialog('close'); } }
        });
    };