JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" class="copy-from" data-copy="name" name="name" />
<input type="text" class="this-elem" id="name" disabled />

CSS

.this-elem {
    border: none;
    font-size: 18px;
    color: #333;
}

JavaScript

$(document).ready(function() {
    $(".copy-from").keyup(function() {
         var ElemId = $(this).data('copy');
        $("#"+ElemId).val($(this).val());
     });
});