JSFiddle - React, Tailwind, and code Playground

HTML

<input id="file__box" type="file" />

JavaScript

$('#file__box').on('change', function(){
  alert($(this).val());
});