JSFiddle - React, Tailwind, and code Playground

HTML

<h2 class="first-word">Data: Some random data</h2>

CSS

h2 span { color: red; }

JavaScript

jQuery(".first-word").each(function(){
var me = $(this), fw = me.text().split(' ');
me.html( '<span>'+fw.shift()+'</span> '+fw.join(' ') );
});