JSFiddle - React, Tailwind, and code Playground
HTML
<div id="content" style="height:300px; width:300px; background-color:gray;"></div>
JavaScript
$(document).ready(function () {
$("#content").on("contextmenu", function () {
alert("CM");
});
});