JSFiddle - React, Tailwind, and code Playground
HTML
<div id="view_1"> dcf</div>
<div id="view_2"> DSg</div>
<div id="view_3"> gsde</div>
<input type="button" name="button" value='hide' onclick="hideDIV()"></input>
JavaScript
function hideDIV(){
$('[id*="view"]').hide();
}