JSFiddle - React, Tailwind, and code Playground

HTML

<label>Name*</label>

JavaScript

$('label').html($('label').html().replace('*','<span style="color:red">*</span>'));