JSFiddle - React, Tailwind, and code Playground

by chrischilcoat

HTML

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

JavaScript

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