JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/ui-darkness/jquery-ui.css">
<div id="dialog"> Click the button! <br/></div>
JavaScript
$('#dialog').dialog({
autoOpen: true,
title: 'Button Click Test',
position: [0, 0],
buttons: {
"Save": function() {
$(this).append('Save was clicked<br/>');
}
}
});