JSFiddle - React, Tailwind, and code Playground

HTML

<div class="someParentDiv">
    <span>this is the text I want   
        <span class="childSpanClass">I don't want this text</span>
    </span>
</div>
<script>    
    //this will work, bit I think it's a little backwards
    //$('div.someParentDiv span').remove('.childSpanClass').css('color','#FF0000')
</script>