JSFiddle - React, Tailwind, and code Playground

by halirgb

HTML

<div class="text-conainer">
    lofasz
</div>

JavaScript

$(".text-conainer").text(function () {
    return $(this).text().replace("lofasz", "hello everyone"); 
});