JSFiddle - React, Tailwind, and code Playground

HTML

<input value="123" />
<span></span>

JavaScript

$('input').change(function () {
    var val = parseFloat($(this).val(), 10).toFixed(2);
    $('span').html(val);
});