JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="subscribeNews">
<label class="rememberMe" for="subscribeNews">напомнить мне</label>

JavaScript

$('subscribeNews').click(function() {
    if ($(this).is(':checked')) {
        $(this).parent().innerHTML = 'some text';
    }
});