JSFiddle - React, Tailwind, and code Playground

HTML

<input type="radio" class="MyRadio" name="TheName">
<label id="mylabel" for="TheLabel">the text</label>

JavaScript

$('#mylabel').html('My New Text');