JSFiddle - React, Tailwind, and code Playground
HTML
<p>drag-and-drop text into this:</p>
<input id="giveittome" value="some text"></input>
<p>other text</p>
<p>more text</p>
<p>whatever</p>
JavaScript
$('#giveittome').on('drag-and-drop' , function (event) {
$(this).val(event.getDraggedText());
});