JSFiddle - React, Tailwind, and code Playground
HTML
<div id="dialog">
<p>
Your content here
</p>
</div>
<input type="button" ID="btnDialog" value="Click here to open the dialog" />
JavaScript
$(document).ready(function() {
$("#dialog").dialog({ autoOpen: false, height: 200, width: 200 });
});
$("#btnDialog").click(function() {
$("#dialog").dialog("open");
});