JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>

<link href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" rel="stylesheet" />
<script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>

Drag the top-left handle outside the containment in north-east direction. The resizable element will resize to 0 width and height.

<div id="container">
    <div id="resizable" />
</div>

CSS

#container {
    position: relative;
    width: 350px;
    height: 300px;
    border: 1px solid #000;
}

#resizable {
    top: 50px;
    left: 50px;
    background: #ddd;
    height: 100px;
    width: 200px;
    border: 1px solid #000;
}

.ui-resizable-handle {
    width: 8px;
    height: 8px;
    border: 1px solid #000;
    background: #ccc;
}

JavaScript

$("#resizable").resizable({
    handles: 'ne, nw, se, sw',
    containment: 'parent',
    aspectRatio: true
});