JSFiddle - React, Tailwind, and code Playground
by skip405
HTML
<input type="checkbox" id="one"> <label for="one">Cat one</label>
<button class="click_me" type="button">Click me</button>
JavaScript
$('.click_me').on('click', function(){
$('#one').next('label').text('Changed to category two on click');
});