JSFiddle - React, Tailwind, and code Playground

HTML

1) hihi  
<input type = "button" value = "Choose image" 
       onclick ="javascript:document.getElementById('imagefile').click();">
<input id = "imagefile" type="file" style='visibility: hidden;' name="img"/>  hello
           <br/>        
2) hihi  
<input type = "button" value = "Choose image #2" 
       onclick ="javascript:document.getElementById('imagefile').click();">
           <input id = "imagefile" type="file" style='display:none;' name="img"/>  hello <br/> bla bla bla bla bla bla