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

Code Example 1

<input type = number id = yourid min = 1 max = 100>

Code Example 2

<input type="number" id="quantity" name="quantity" min="1" max="5">

Code Example 3

<label for="quantity">Quantity (between 1 and 5):</label>
<input type="number" 
  id="quantity" name="quantity" min="1" max="5">

Learn ReactJs, React Native from akashmittal.com