JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="human"> I am a human
<input type="file" disabled name="file" id="file" />
JavaScript
$('document').ready(function(){
$('#human').change(
setTimeout(function(){
$('#file').removeAttr("disabled");
}, 5000));
});