JSFiddle - React, Tailwind, and code Playground

by cgough

HTML

<div onClick="cssTest()">Test</div>

CSS

.blue {
  background-color: blue;
}

JavaScript

this.cssTest= function() {
css: blue;
}