JSFiddle - React, Tailwind, and code Playground
HTML
<label class="file">File</label>
<input class="none" type="file">
JavaScript
var _file = document.getElementsByClassName('file')[0]; //Return a NodeList
_file.onclick = function(){
console.log("a")
document.getElementsByClassName('none')[0].click();
}