JSFiddle - React, Tailwind, and code Playground

HTML

<span class="note">
    <h1>
        some text
    </h1>
</span>

CSS

h1 {font-size:250%;color:red;}

JavaScript

$('.note:first-child').append("more text");