JSFiddle - React, Tailwind, and code Playground

HTML

<intput type="text" />

JavaScript

alert('There are ' + $('*:focus').length + ' elements focused. ')