JSFiddle - React, Tailwind, and code Playground

HTML

<div id='box'></div>
<img id='pelican' 
  src="http://s20.postimg.org/feg5p5u5p/Pelican_225.jpg" />

CSS

div#box {
    width:100px;
    height:100px;
    background-color:beige;
    border: 1px solid black;
}

JavaScript

var cell_dropOps = {	 
	drop : box_drop,		
	accept : '.ui-wrapper'
};

function box_drop(e, ui) {
   debugger;
    
    ui.draggable[0].remove();
    x=1;
}

$(function(){  
    $('#box').droppable(cell_dropOps);
    $('#pelican').resizable();
    $('#pelican').parent('.ui-wrapper').draggable();
});