JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
    <li>
        One <input type="checkbox" /><br />
        Two <input type="checkbox" /><br />
        Three <input type="checkbox" /><br />
    </li>
    <li>
        One <input type="checkbox" /><br />
        Two <input type="checkbox" /><br />
        Three <input type="checkbox" /><br />
    </li>
</ul>

JavaScript

$("input[type=checkbox]").click(function() {
    $(this).siblings("input[type=checkbox]")
    .attr("checked", $(this).attr("checked")); 
});