JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id='fireButton' value='Огонь'>

JavaScript

function handleFireButton(){
	console.log('Кнопа нажата')
}

function init(){
	var fireButton = document.getElementById('fireButton');
	fireButton.onclick = handleFireButton;
}

window.onload = init