JSFiddle - React, Tailwind, and code Playground

HTML

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

CSS

.red {
  color: red;
}

JavaScript

$('input').on('change', function(e){
var $el=$(e.target).parent();
$el.toggleClass('red',e.target.checked);
})