JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="check"> 
<div id="message">No Mr. Bond, I expect you to die.</div>

CSS

#message { display: none; }

JavaScript

$('#check').change(function () {

    if ( $(this).is(':checked') ) {
        $('#message').show();
    };
    
    if ( $(this).is(':checked') == false ) {
        $('#message').hide();
    };
     
});