JSFiddle - React, Tailwind, and code Playground

HTML

<div class="notice_info">
  <input type="checkbox" id="userj_neednotice"/>
  <div class='check_box_notice_content hide'>
    Notice text here
  </div>
</div>

JavaScript

function show_notice_if_checked(){
  if ( $("#userj_neednotice").is(":checked") ){
    $(".check_box_notice_content").show();
  }
  else {
    $(".check_box_notice_content").hide();
  }
}

show_notice_if_checked(); //Case of refresh

//Case of change
$("#userj_neednotice").change(function () {
  show_notice_if_checked();
});