JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">&lt;&lt;</div>

JavaScript

$(function(){
    var t = $('#test');
    
    t.text(t.html());
    alert('wait');
    t.html(t.text());
});