JSFiddle - React, Tailwind, and code Playground
by Praveen Kumar Purushothaman
HTML
<div class="parent">
<div class="child">Drag Me!</div>
</div>
CSS
.child {width: 100px;}
JavaScript
$(function() {
$( ".child" ).draggable({ containment: "parent" });
});