JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input type="file">
</form>

JavaScript

$(":file").change(function(){
    alert($(":file").val());
 });