JSFiddle - React, Tailwind, and code Playground
HTML
<div class="notice_info">
<input type=checkbox id= "userj_neednotice" checked=true />
<div class='check_box_notice_content'>
abcdefg
</div>
</div>
JavaScript
function checkVisible(){
$(".check_box_notice_content").toggle(this.checked==true);
}
checkVisible.call($('#userj_neednotice').change(checkVisible)[0]);