JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input type="checkbox" name="" value="">one
    <input type="checkbox" name="" value="">two
</form>

        <a id="select_all" href="#">Выбрать все</a>

JavaScript

$(document).ready(function(){
    $("#select_all").click(function() {
        if ($("input[type='checkbox']").prop("checked")) {
            $(':checkbox').prop('checked', false);
            $(this).text('Выбрать все');
        }
        else {
            $(':checkbox').prop('checked', true);
            $(this).text('Удалить все');
        }
    });
});