JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.all.css">
<div id="dialog-message" title="Dialog Title">
<div id="inside">Hi there.</div>
</div>

JavaScript

$( "#dialog-message" ).dialog({
            modal: true,
    height: "auto",
            buttons: {
                Ok: function() {
                    $( this ).dialog( "close" );
                }
            }
    
        });setTimeout(function() {
        $('#inside').append("Hello!<br>");
        setTimeout(arguments.callee, 1000);
      }, 1000);