JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    <table id='tbl1'>
        <tbody>
            <tr id='tr1'>
                <td id='td1'>this is td1</td1>
                <td id='td2'>this is td2</td1>
            </tr>
            <tr id='tr2'>
                <td id='td3'>this is td3</td1>
                <td id='td4'>this is td4</td1>
            </tr>
        </tbody>
    </table>
</body>

JavaScript

$('#tbl1 tbody tr').mousedown(function(e){

     if(e.button==2) alert($(this).attr('id'));

 });