JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="Items_0__Suffix">
<input type="checkbox" id="Items_1__Suffix">
<div id="section0">
Hide Me on checkbox 1 click
</div>
<div id="section1">
Hide Me on checkbox 2 click
</div>

JavaScript

$("[id^=Items_]").on("click",function()
        {        
           var index = $(this).index();
           !$(this).is(":checked") ? $('#section' + index).hide() : $('#section' + index).show();
        });