JSFiddle - React, Tailwind, and code Playground
HTML
<p>
Input:<br>
<textarea name="text_input" id="text_input"></textarea>
<div id="placeholder" style="display:none"></div>
</p>
<script>
$('#text_input').change(process).keyup(process);
function process(){
var html = $('#text_input').val();
$("#placeholder").html(html).find("a").each(function(i,elem){
alert('got here 2');
}).html("");
}
</script>