JSFiddle - React, Tailwind, and code Playground

by wirey00

HTML

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

JavaScript

$('.checkbox').change( function(e) {
    e.preventDefault();
    $(this).prop('checked',true);
});