JSFiddle - React, Tailwind, and code Playground

by ipr101

HTML

<span class="price">$34.55</span>

JavaScript

$(".price").each(function () {
    var currentText = $(this).text();
    $(this).text(currentText.replace("$","R"));
});