JSFiddle - React, Tailwind, and code Playground
HTML
<button>Change content of all p elements</button>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
JavaScript
$("button").click(function() {
var wc_mnm_weight_params = {
i18n_total: '<span class="total">Totals!</span> %s</span>'
}
$("p").html(wc_mnm_weight_params.i18n_total);
});