I want just to put a type number in an input react js, is there any particular function that i should add to restict the input only in number type and to control the max and min
Asked
Active
Viewed 104 times
2 Answers
0
You can directly use <input type="number"/>
for that. This will make the restriction at the HTML level itself.

Gaurav
- 782
- 5
- 12
-
1thanks! it did help – Maria-Elena Jan 22 '19 at 09:59
-
@Meriem Can you please mark it as Answer as it resolved your problem :) – Gaurav Jan 22 '19 at 10:26