JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" value="O">
JavaScript
$('input').replaceWith(function() {
return document.createTextNode(this.outerHTML);
});
<input type="button" value="O">
$('input').replaceWith(function() {
return document.createTextNode(this.outerHTML);
});