JSFiddle - React, Tailwind, and code Playground

HTML

<div id="dialog-confirm">This is the content</div>

JavaScript

$( "#dialog-confirm" ).dialog({
      resizable: false,
      height:280,
      modal: true,
      buttons: {
        "Yes": function() {
          $( this ).dialog( "close" );
        },
        "No": function() {
          $( this ).dialog( "close" );
        }
      }
 });