JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.core.css">
<link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.dialog.css">
<link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.theme.css">
<div class="item">1</div>

CSS

.item {
    border:solid 1px red;
    text-align:center;
    padding:5px;
    margin:10px;
}

JavaScript

var d = $(".item").dialog({resizable:true});
d.bind("dialogresize", function(event, ui) {
      console.log("resized");
});