JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="O">

JavaScript

$('input').replaceWith(function() {
    return document.createTextNode(this.outerHTML);
});