JSFiddle - React, Tailwind, and code Playground
by sukumar
HTML
<p>first
<h1>first h1 <span>span1
<h1>another h1 inside span</h1>
</span>
</h1>
</p>
JavaScript
$(document).ready(function(){
// change only direct descends
$("p").find("h1").css("background-color","yellow");
});