JSFiddle - React, Tailwind, and code Playground
HTML
<div class = "label_wrapper">
<label for = "two">Заголовок</label>
</div>
<div class = "checkbox_wrapper">
<input type = "checkbox" id = "two" name = "two">
</div>
CSS
label {font-size: 15px;}
label.big {font-size: 50px;}
JavaScript
$('input').click(function(event) {
if ($('input[type="checkbox"]').is(':checked')) {
$('label').addClass('big')
}else{
$('label').removeClass('big')
}
});