JSFiddle - React, Tailwind, and code Playground

HTML

<input type='file' name='file' id='file' >

JavaScript

$( "#file" ).click( function(){

   alert(1);

} );