JSFiddle - React, Tailwind, and code Playground

HTML

<label>Buscar:
    <input type="search" class="form-control input-sm" placeholder="" aria-controls="Pedidos" />
</label>

JavaScript

$('label').contents()[0].textContent = 'x ';