JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://google.com" id="link_id">Google</a>
JavaScript
$(function() {
setTimeout(function() {
var some_new_url = 'http://test.example.com';
$('#link_id').replaceWith($('<a href="'#'">' + $('#link_id').text() + '</a>'));
}, 200);
});