JSFiddle - React, Tailwind, and code Playground

HTML

<div id="myDiv"></div>

CSS

div{
    width:50%;
    height:200px;
    background:blue;
}

JavaScript

$( "#myDiv" ).draggable({
  start: function( event, ui ) {
      alert('drag it');
  }
});