JSFiddle - React, Tailwind, and code Playground
HTML
<input type=checkbox class='checkbox'/><br>
<input type=checkbox class='checkbox'/>
<br><br>
<input type=checkbox id="checkbox"/> Тык
JavaScript
$("#checkbox").change(function(){
$('.checkbox').prop('checked', $(this).is(':checked'));
})