JSFiddle - React, Tailwind, and code Playground
HTML
<a href="?id=2" id="showdiv">Open div and store values</a>
<div id="divtoshow" style="display:none;">Hello</div>
JavaScript
$("#showdiv").click(function(e){
e.preventDefault();
$("#divtoshow").show();
});