JSFiddle - React, Tailwind, and code Playground
HTML
<div id="parent">
<div class="browse">Browse</div>
<input type="file"/>
</div>
CSS
.browse{
padding:10px 20px;
background:#f00;
color:#fff;
}
JavaScript
$("#parent")
.delegate(".browse","click",function(){
$(this).siblings("input[type='file']").trigger("click");
})
.delegate("input[type='file']","change",function(e){
alert("changed");
})