JSFiddle - React, Tailwind, and code Playground

by James Allardice

HTML

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

JavaScript

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