JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
 <li>twitter message here <a href="http://twitter.com/username/ID">time of twitter</a></li>
 <li>no twitter message here <a href="http://google.com/username/ID">google</a></li>
</ul>

CSS

.twitter {background-color:yellow}

JavaScript

$('a[href^="http://twitter.com"]').addClass('twitter');