JSFiddle - React, Tailwind, and code Playground
HTML
<div class="rating">
<h2 typename="First">One is First</h2>
<h2 typename="Second">Two is Second</h2>
<h2 typename="Third">Three is Third</h2>
</div>
JavaScript
$("[typename]").each(function(){
$(this).text($(this).attr("typename"));
});