JSFiddle - React, Tailwind, and code Playground
by j08691
HTML
<td id="check-box"><input type="checkbox" name="checkbox"></td>
<td id="qty-box"><input type="text" name="qtybox"></td>
JavaScript
$('input[name="checkbox"]').change(function(){
$('input[name="qtybox"]').val($(this).is(':checked')?'1':'');
})