JSFiddle - React, Tailwind, and code Playground
HTML
<a href="mailto:me@example.spam" id="lnkMail">moc.elpmaxe@em</a>
CSS
#lnkMail {
unicode-bidi: bidi-override;
direction: rtl;
}
JavaScript
$('#lnkMail').hover(function(){
// here you can use whatever replace you want
var newHref = $(this).attr('href').replace('spam', 'com');
$(this).attr('href', newHref);
});