JSFiddle - React, Tailwind, and code Playground
HTML
<input type="file" id="myFileInput" />
<input type="button" onclick="document.getElementById('myFileInput').click()" value="Select a File" />
CSS
#myFileInput {
display:none;
}
<input type="file" id="myFileInput" />
<input type="button" onclick="document.getElementById('myFileInput').click()" value="Select a File" />
#myFileInput {
display:none;
}