JSFiddle - React, Tailwind, and code Playground

by spliter

HTML

<div class="item">
   <span class="count"></span>
   Text that needs to be wrapped.
</div>

CSS

.item {color: Black}
.new {color: Red}

JavaScript

var txt = $('.count')[0].nextSibling;
$(txt).wrap('<span class="new" />');