JSFiddle - React, Tailwind, and code Playground

by evan

HTML

<h3 id="x"></h3>
<input type="text" />

JavaScript

var x= document.getElementById('x');
setInterval(function () {
    x.innerText = document.activeElement.tagName;
}, 100);