JSFiddle - React, Tailwind, and code Playground
HTML
<table class="table">
<thead><tr><th>id</th><th>name</th><th>desc</th><th>action</th></thead>
<tbody>
<tr>
<td>id</td>
<td>name of Item</td>
<td>Description of Item</td>
<td><a href="#" id="confirm">confirm</a></td>
</tr>
<tr>
<td>id</td>
<td>name of Item</td>
<td>Description of Item</td>
<td><a href="#" id="confirm">confirm</a></td>
</tr>
<tr>
<td>id</td>
<td>name of Item</td>
<td>Description of Item</td>
<td><a href="#" id="confirm">confirm</a></td>
</tr>
<tr>
<td>id</td>
<td>name of Item</td>
<td>Description of Item</td>
<td><a href="#" id="confirm">confirm</a></td>
</tr>
<tr>
<td>id</td>
<td>name of Item</td>
<td>Description of Item</td>
<td><a href="#" id="confirm">confirm</a></td>
</tr>
</tbody>
</table>
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<p>Some text in the modal.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
JavaScript
$(do$("tr #confirm").click(function(){
$("#myModal").modal();
});