JSFiddle - React, Tailwind, and code Playground
HTML
<div id="warning">There is something selected!!!</div>
<input type=checkbox>
<input type=checkbox>
<input type=checkbox>
<input type=checkbox>
<input type=checkbox>
CSS
#warning {
display: "none";
}
JavaScript
$('input[type=checkbox]').on('change', function () {
if ($('input[type=checkbox]:checked').length > 0) {
$("#warning").show(); // any one is checked
} else {
$("#warning").hide(); // none is checked
}
});