JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="address-same" checked="checked" />
JavaScript
$("#address-same").on('click',function() {
var checked = $(this).is(':checked');
if(checked){
$('#address-same').attr('checked','true');
//alert("remove")
}else{
$('#address-same').attr('checked','false');
//alert("add")
}
});