JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://code.jquery.com/ui/jquery-ui-git.css">
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<script src="https://code.jquery.com/ui/jquery-ui-git.js"></script>
<div class="container">
<div class="one">
<div class="two">
</div>
</div>
</div>
CSS
body,
html {
height: 100%;
width: 100%;
}
.container {
position: absolute;
left: 50px;
top: 50px;
height: 100%;
width: 100%;
}
.one {
height: 400px;
width: 400px;
background-color: green;
overflow: hidden;
}
.two {
height: 200px;
width: 200px;
background-color: red;
}
JavaScript
$(function() {
var $container = $(".one").closest(".container");
var $one = $container.children(".one");
var $two = $one.children(".two");
$two.resizable({
handles: "se"
});
$one.resizable({
handles: "all",
// Only specifying to hide handles on outer DIV
// Actually hides on both DIVs
autoHide: true
});
});