JSFiddle - React, Tailwind, and code Playground

HTML

<input type="file" id="kmlFiles2" multiple onchange="function(){alert('why does this not work')}()">
     
     
<input type="file" id="kmlFiles2" multiple onchange="alert('but this does work')">