JSFiddle - React, Tailwind, and code Playground

by SpAm

HTML

<div>
    <input type="text" class="myInputs" />
    <span></span>
</div>

JavaScript

$('.myInputs').keyup(function(){
    $(this).next('span').html($(this).val());
});