JSFiddle - React, Tailwind, and code Playground HTML <input id='f' type='file'> JavaScript $(function () { $('input').click(); });