JSFiddle - React, Tailwind, and code Playground
HTML
<div id="box"></div>
CSS
#box{
width:150px;
height:150px;
background-color:beige;
border:1px solid black;
cursor: pointer;
}
JavaScript
$(function() {
$('#box').contextmenu(function(e) {
e.preventDefault();
var document_offset;
debugger;
doc_offset = $(this).offset();
$('<div>').css({width:150px, height:150px});
});
});