JSFiddle - React, Tailwind, and code Playground
HTML
<input type="file" name="photo" id="photo" />
JavaScript
$(document).ready(function(){
$('#photo').on('change', function(e){
alert('change function');
});
$('#photo').on('click', function(e){
alert('click function');
});
});