JSFiddle - React, Tailwind, and code Playground

by Daniel Tan

HTML

<h3>New stuff</h3>

CSS

.red { color: red; }

JavaScript

$('h3:contains(New)').html(function() {
    return $(this).html().replace('New', '<span class="red">New</span>');
});