JSFiddle - React, Tailwind, and code Playground

HTML

<div id="header">
   **text to change**
   <div>
       text that should not change
   </div>
   <div>
       text that should not change
   </div>
</div>

JavaScript

var tmp=$("#header>div").html();
$("#header").text("its thursday").append(tmp);