JSFiddle - React, Tailwind, and code Playground

HTML

<p>Do you have a company?
    <input name="comorno" type="checkbox" id="yes" form="signupform"> Yes
    <input type="checkbox" name="comorno" id="no">No</p>

JavaScript

$(document).ready(function (e) {
    $('input[name="comorno"]').each(function()
		{
  	  $(this).change(function()
    	{
        $('input[name="comorno"]').prop('checked',false);
        $(this).prop('checked',true);
   	 	});
		});
});