JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="Check" />SelectAll<br /><input type="radio"/>First<br />


    <input type="radio"/>Second<br />
            <input type="radio"/>Third<br />
            <input type="radio"/>Fourth<br />
            <input type="radio"/>Fifth

JavaScript

var IsCheck = false;
                
                    $("#Check").change(function () {
                        if ($(this).is(':checked')) {
                            $("input[type=radio]").prop("checked", true);
                            
                        }
                        else { $("input[type=radio]").prop("checked", false); }
                    });