JSFiddle - React, Tailwind, and code Playground

HTML

<input id="input_A" type="text" /> ...If I type something here
<input id="input_B" type="text" /> ... It will be copied here

JavaScript

$('#input_A').keyup(function() {
    $('#input_B').val($(this).val());
});