JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

alert($('input')[0].outerHTML);