JSFiddle - React, Tailwind, and code Playground
by zlojnaxa
HTML
<div>Текст</div>
<input type="button" value="Клик"/>
JavaScript
document.getElementsByTagName('input')[0].addEventListener('click',function(){
document.getElementsByTagName('div')[0].innerHTML = 'Новое содержимое';
},false);