JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<body>
 
<input id="check1" type="checkbox" checked="checked">
<label for="check1">Check me</label>
<input id="check3" type="checkbox" checked="checked">
<label for="check3">Check me</label>
<input id="check4" type="checkbox" checked="checked">
<label for="check4">Check me</label>
<p></p>

</body>

CSS

p {
    margin: 20px 0 0;
  }
  b {
    color: blue;
  }

JavaScript

$( "input" ).change(function() {
  var $input = $( this );
  $( "p" ).html(
    ".attr( \"checked\" ): <b>" + $input.attr( "checked" ) + "</b><br>" +
    ".prop( \"checked\" ): <b>" + $input.prop( "checked" ) + "</b><br>" +
    ".is( \":checked\" ): <b>" + $input.is( ":checked" ) + "</b>" );
}).change();