JSFiddle - React, Tailwind, and code Playground
HTML
<span>hello world!<input></span>
JavaScript
$("input").droppable({
drop: function(event, ui) {
alert(ui.draggable.text());
}
});
$("span").draggable({helper:function(){
return jQuery("<span>hello</span>");
}});