JSFiddle - React, Tailwind, and code Playground
HTML
<input class="entry" type="number" min="0" step="0.1" />
JavaScript
$('.entry').change(function(){
// parse the typed value as a floating point number
var num = parseFloat(this.value);
// ensure there are two decimal places
this.value = num.toFixed(2);
});