JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" name="test" onchange="testing('hello', '1')" /> Click! <br/>
<span id="1">Buuh</span>

JavaScript

function testing(newValue, spanID)
{
	document.getElementById(spanID).innerHTML=newValue;
}