JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="address-same" checked="checked" />

JavaScript

$("#address-same").on( 'click', function() {
            		if ( $( this ).attr( 'checked' ) == 'checked' ) {
            			$("#address-same").removeAttr( 'checked' );
            		} else {
            			$("#address-same").attr( 'checked', 'checked' );
            		}
            	});