JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" value="check1" name="c1">
<label for="c1">Primeiro check</label>

<input type="checkbox" value="check2" name="c2">
<label for="c2">Segundo Check</label>

<input type="checkbox" value="check3" name="c3">
<label for="c3">Terceiro Check</label>

<button id="confirma"> Confirma </button>
<div id="resultado"> </div>

JavaScript

$('#confirma').on('click', function() {
    var valores = $('input:checked').map(function() {
        return this.value;
    }).get().join(', ');
	$('#resultado').html(valores);
});