JSFiddle - React, Tailwind, and code Playground

HTML

<label><input type="checkbox">True?</label>

CSS

.active {color:red;}

JavaScript

$("label").click(function () {
	$(this).toggleClass("active");
});