JSFiddle - React, Tailwind, and code Playground
HTML
<button type="button" id="btn">Кнопка</button>
JavaScript
$('#btn').replaceWith('<a href="#">Ссылка</a>');
<button type="button" id="btn">Кнопка</button>
$('#btn').replaceWith('<a href="#">Ссылка</a>');