JSFiddle - React, Tailwind, and code Playground

HTML

<div id="makeMeDraggable1">Drag me!</div>
<button id="makeMeDraggable1">Drag me!</button>

JavaScript

$( init );
 
function init() {
  $('#makeMeDraggable1').draggable();
  $('#makeMeDraggable2').draggable();
}