JSFiddle - React, Tailwind, and code Playground
by Paulpro
HTML
<input type="file" style="cursor: pointer;"/>
JavaScript
$('input:file').each(function(){
var $input = $(this);
$input.before($('<div>').height($input.height()).width($input.width()).css(
{
cursor: 'pointer',
position: 'absolute',
zIndex: $input.css('z-index')
}).click(function(){
$(this).hide();
$input.click();
$(this).show();
}));
});