JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" class="first" placeholder="type here">
<input type="text" class="second" placeholder="here it is the reuslt">
JavaScript
$(".first").on('keydown keyup',function(){
$(".second").val($(this).val());
});