JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.2/themes/ui-lightness/jquery-ui.css">
<div class="container">
    <div class="resize">Try pressing shift while resizing</div>
</div>

CSS

.container {
    width: 300px;
    padding: 10px;
    background: #f1c40f;
}
.resize {
    background: #16a085;
    height: 100px;
    width: 100%;
    /* Styling */
    padding-top: 80px;
    color: white;
    text-align: center;
}

JavaScript

$(function () {
    $(".resize").resizable({
        handles: 's',
    });
});

// This is just to show that container width can change
setInterval(function () {
    // Disable width change while resizing
    if (!$('.ui-resizable-resizing').length) {
        $('.container').width('+=10px');
    }
}, 1000);