JSFiddle - React, Tailwind, and code Playground

by jensgram

HTML

<input type="checkbox" id="checkbox"/>
<p>me</p>

JavaScript

$('#checkbox').change(function(){
    var c = this.checked ? '#f00' : '#09f';
    $('p').css('color', c);
});