JSFiddle - React, Tailwind, and code Playground

HTML

<textarea id="inputText">Rentre du texte ici...</textarea>
<div id="reponse"></div>
<script>
document.getElementById("inputText").addEventListener("keyup", function(){document.getElementById("reponse").innerText="<textarea>"+document.getElementById("inputText").value+"</textaera>";});
</script>

CSS

#reponse{
width:100%;
background:#000000;
color:#FF0000;
}