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

var myFunc = function () {
    setTimeout(function(){
        $('#file').removeAttr("disabled");
    }, 1000);
};

$('document').ready(function(){
 	$('#human').change(myFunc);
});