JSFiddle - React, Tailwind, and code Playground
by j08691
HTML
<span class="name">SOMEUSERNAME<span class="meta">20 friends</span></span>
JavaScript
console.log( $('span').filter(function () {
return this.className == 'name'
}).get(0).firstChild )