React displays multiple intervals, only with the actual value. Any tips on how to fix this:

And if that matters, the username should not be in the span, but like innerHTML in .chatUser
The actual rendering method is short:
createShortUsername: function() { // shortName is first two letter of first name. var shortName = this.props.userName.split(" ")[0].slice(0, 2); console.log(shortName); return shortName; }, render: function() { return ( <div className="chatUser"> {this.createShortUsername()} </div> ); }
Thanks!
source share