JSFiddle - React, Tailwind, and code Playground
HTML
<input name="Primary Silkscreen12" type="file" dropzone="copy file:image/png file:image/jpg file:image/jpeg" style="border:3px solid #1871D1;" size="60" />
JavaScript
function init() {document.getElementById('x').addEventListener('drop', onDrop, true)}