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