JSFiddle - React, Tailwind, and code Playground
HTML
<input type="file" id="uploadPicture" />
JavaScript
$('#uploadPicture').change(function() {
alert('filename ['+$(this).val()+']');
});
<input type="file" id="uploadPicture" />
$('#uploadPicture').change(function() {
alert('filename ['+$(this).val()+']');
});