JSFiddle - React, Tailwind, and code Playground

HTML

<input type='checkbox' name='mygroup1' value='1' class='unique'>
<input type='checkbox' name='mygroup2' value='2' class='unique'>
<input type='checkbox' name='mygroup3' value='3' class='unique'>

JavaScript

$('input.unique').each(function() {
	$(this).on('touchstart click', function() {
	$('input.unique').not(this).removeAttr('checked');
});
});