How to allow only numbers in textbox in reactjs using regular expression only?
textbox
reactjs
regular expression
The answer provided by Mayank Shukla is correct, no doubt about it.
type="number"
No need to use regex in this case as will accept only numbers.