JSFiddle - React, Tailwind, and code Playground
by gweax
HTML
<div id="parent">
<p id="child">
<span id="inline">Content</span>
</p>
</div>
JavaScript
document.getElementById("child").querySelector("div span").style.backgroundColor = "#bada55";