JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="test" name="test" value="1.23">
<div class='txt'></div>

JavaScript

$('#test').next('.txt').text($('#test').val());