Check out example codes for "number step input html". It will help you in understanding the concepts better.

Code Example 1

<input id="myNumber" name="myNumber" type="number" step="2" min="1.2">

Learn ReactJs, React Native from akashmittal.com