JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://jqueryui.com/resources/demos/style.css">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

<div class="draggable ui-widget-content father ">
  <p class ="p1">handle</p>
  <div id="resizable" class="draggable ui-widget-content child">
    <p class ="p2">handle</p>
    1234345 6
  </div>
  
</div>

CSS

body { font-family: sans-serif; }

.draggable {
  width: 300px;
  height: 300px;
  background: #F90;
  border-radius: 10px;
}
.draggable.is-pointer-down {
  background: #09F;
}
p{ background: #F00;}
.child {
  width:100px;
  height:100px;
}

.draggable.is-dragging { opacity: 0.7; }
.ui-resizable-helper{ border: 1px dotted #20a0ff; }

JavaScript

// external js: draggabilly.pkgd.js

$('.father').draggable({
  handle:'.p1'
}).resizable({
      helper: "ui-resizable-helper",
      containment: "parent" 
    });
$('.child').draggable({
  handle:'.p2'
}).resizable({
      helper: "ui-resizable-helper",
      containment: "parent" 
    });