JSFiddle - React, Tailwind, and code Playground

by cgough

HTML

<button class="text_div">
    preview
</button>

JavaScript

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