JSFiddle - React, Tailwind, and code Playground
by masteram
HTML
<button class="modalstart">Show dialog</button>
<div id="modalresult">someContent</div>
JavaScript
$('#modalresult').dialog({
width: 550,
height: 300,
autoOpen: false,
modal: true,
resizable: false
});
$(".modalstart").click(function () {
$("#modalresult").dialog("open");
});