JSFiddle - React, Tailwind, and code Playground
by sjmcpherson
HTML
<div id="el"></div>
JavaScript
var el = document.getElementById("el");
var colors;
colors = ['white', 'black', 'custom'];
var r = Math.floor(Math.random()*3);
el.textContent = colors[r];