JSFiddle - React, Tailwind, and code Playground
HTML
<div id="MyEdit">
This text will change
</div>
JavaScript
$("#MyEdit").html("My new text!");
<div id="MyEdit">
This text will change
</div>
$("#MyEdit").html("My new text!");