JSFiddle - React, Tailwind, and code Playground

by Vaibhav Jain

HTML

<div id="test">Test the color from variable</div>

JavaScript

var color="Blue";
document.getElementById("test").style.color = color;