JSFiddle - React, Tailwind, and code Playground

HTML

<input id="filter" type="text" onkeyup = "test()" >

<div id="lc">  
</div>

<script>
function test()
{
    var element = document.createElement("div");
    element.appendChild(document.createTextNode('Новый блок'));
    document.getElementById('lc').appendChild(element);
}
</script>