JSFiddle - React, Tailwind, and code Playground

HTML

<span id='ok' class='feedBack-body-button-span'>Кнопка</span>
<input id='download' style='display:none' type='file'>

JavaScript

$('#ok').click(function() {

		var event = document.createEvent("Event");
		
		event.initEvent("click", true, true);
		
		document.getElementById('download').dispatchEvent(event);


})