JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">Div1 visible after button click</div>

<button type="button" id="btnSearch">Click Me!</button>

JavaScript

// Short-form of `document.ready`
$(function(){
    $("#test").hide();
    $("#btnSearch").on("click", function(){
        $("#test").show();
    });
});