JSFiddle - React, Tailwind, and code Playground
HTML
<input id="foo" type="file" class="bar" />
CSS
.bar:after {
content:"Please select a file";
background-color:white;
}
JavaScript
$('#foo').change(function() {
$(this).removeClass("bar");
})