JSFiddle - React, Tailwind, and code Playground

HTML

<div id="MyEdit">
    This text will change
</div>

JavaScript

$("#MyEdit").html("My new text!");