JSFiddle - React, Tailwind, and code Playground
HTML
<input type="number" step="0.5"/>
JavaScript
$(function(){
$("input[type='number']").prop('min',1);
$("input[type='number']").prop('max',10);
});
<input type="number" step="0.5"/>
$(function(){
$("input[type='number']").prop('min',1);
$("input[type='number']").prop('max',10);
});