JSFiddle - React, Tailwind, and code Playground

by ethertank

HTML

<a href="http://google.co.jp">google</a>
<a href="http://google.com">google</a>

CSS

.red { color:red; }

JavaScript

jQuery(function($){
    $('a[href$=".jp"]').addClass("red");
});