JSFiddle - React, Tailwind, and code Playground
HTML
<div class="fileUnitPic">
<img class="bx-def-round-corners bx-def-shadow" src="http://demo.boonex.com/m/photos/get_image/file/4c25fabd61bf2454cad89c017b9686ca.jpg" onclick="lightroom(this)" />
</div>
JavaScript
$('.fileUnitPic img').on('contextmenu', function(e){
e.preventDefault();
});