JSFiddle - React, Tailwind, and code Playground

HTML

<acronym>test</acronym>

JavaScript

$('acronym').each(function(i, el) {
    $(this).replaceWith($('<abbr></abbr>').html($(this).html()));
});