JSFiddle - React, Tailwind, and code Playground

HTML

<div id="foo">hey</div>

JavaScript

document.getElementById("foo").setStyle("color", "red");