JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<body>

<div style="background:yellow;border:1px solid #cccccc;padding: 10px;" contextmenu="mymenu">
<p>Right-click inside this box to see the context menu!</p>

<menu type="context" id="mymenu">
  <menuitem label="Refresh" onclick="window.open('//twitter.com/intent/tweet?text=' + window.location.href);" icon="ico_reload.png"></menuitem>
</menu>

</div>

<p>This example currently only works in Firefox!</p>

</body>