JSFiddle - React, Tailwind, and code Playground

HTML

<input type="file" name="file[]" id="checkinfile" />

JavaScript

$('#checkinfile').click();