JSFiddle - React, Tailwind, and code Playground

HTML

<input type="file" name="PicturePath" id="fileUpload" accept=".png,.jpg,.jpeg,.gif,.tif" />

JavaScript

$("input[type=file]").on("change", function () {
    alert('hi')
});