JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" name="c1" id="c1" value="Test" class="textbox"  />

JavaScript

jQuery("#c1").autocomplete();
jQuery("#c1").replaceWith('<h1>Test</h1>')