JSFiddle - React, Tailwind, and code Playground
HTML
<div class="field_with_errors">
<input id="count" name="count" size="2" type="text">
<label class="message" for="count_for">Required</label>
</div>
JavaScript
$('.field_with_errors').replaceWith($("#count"));