JSFiddle - React, Tailwind, and code Playground

HTML

<table>
 <tr>
  <td><input value="test" /></td>
  <td>123</td>
 </tr>
</table>

JavaScript

$(function () {
    $('table td:has(:input:only-child)').each(function () {
        $(this).html($(':input', this).val());
    });
});