JSFiddle - React, Tailwind, and code Playground

by Martin Emanuelsson

HTML

<div class="text_div">
    This div contains some text ter ter ter terter
</div>

JavaScript

$(".text_div").text(function () {
    return $(this).text().replace("contains", "hello everyone"); 
});