JSFiddle - React, Tailwind, and code Playground HTML <input type="checkbox" id="chkb" /> JavaScript $('#chkb').toggle(function(){},function(){});