JSFiddle - React, Tailwind, and code Playground

HTML

<div id='gridbox'>nnn</div>

JavaScript

$("#gridbox").css({'background-color':'black'});