JSFiddle - React, Tailwind, and code Playground
HTML
<input type='file' name='file' id='file' >
JavaScript
$( "#file" ).click( function(){
alert(1);
} );
<input type='file' name='file' id='file' >
$( "#file" ).click( function(){
alert(1);
} );