JSFiddle - React, Tailwind, and code Playground

by hollandben

HTML

<input type="text" id="amount">
<input type="text" id="shares">

JavaScript

$(function() {
    var $amount = $('#amount');
    var $shares = $('#shares');
    
    $amount.on('keydown', function() {
        $shares.val(this.value);
    });
});