JSFiddle - React, Tailwind, and code Playground
HTML
<input type="file" />
JavaScript
$(document).delegate(':file', 'change', function() {
console.log(this);
});
<input type="file" />
$(document).delegate(':file', 'change', function() {
console.log(this);
});