JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <p id="label">This is some text</p>
</div>
<div id="notification" style="background-color: #000000">
    <p>This is my unclosable jquery dialog</p>
</div>

JavaScript

$('#notification').dialog({
    autoOpen: true,
    height: 350,
    width: 550,
    modal: true,
    buttons: {
        "Close": function() {
            $(this).dialog("close");
        }
    },
    close: function() {
        $(this).dialog("close");
    }
});

setTimeout(function() {
    $('#notification').dialog("close");
    $('#label').html("This is some NEW text");
    }, 3000);