JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css">
<a class="checked" href="http://www.google.com">Click here</a>

JavaScript

//var dialog;
        var ret = 0;
        window.confirm = function(msg){
 
          $('<p>'+msg+'</p>').dialog({
            buttons: {
                "Yes": function() {ret=1;close(1);},
                "No":  function() {ret=2;close(2);},
                "Cancel":  function() {
                	ret=3;	close(3);
                }
            }
        });
          return ret;
        }
        
        
$(function() {
    $('.checked').click(function(e) {
        e.preventDefault();
       var rep = confirm("hello world");
       console.log(rep);
      });
});

function close(ret){
	console.log(ret);
  //dialog.dialog('close');
}