JSFiddle - React, Tailwind, and code Playground

HTML

<input type="file" />

JavaScript

$(document).delegate(':file', 'change', function() {
    console.log(this);
});