JSFiddle - React, Tailwind, and code Playground
by ilyabezp
HTML
<div contenteditable='true' oninput='check()'>1</div><p></p>
JavaScript
var firstLaunch = false, go = function(){
if($("div").is(":focus"))
$('p').append('1')
}, pr = new interval(go, 10000);
check=function(){
if(!firstLaunch)go();
if(!pr.i())pr.o();
firstLaunch=true;
}