If the called script returns true it submits, if it returns false, it doesnt. Code here: https://github.com/wesbos/javascript-verification-inputs Options are using the inbuilt HTML validation, writing one yourself or using a validation schema. Your point on the use of js for validation is well taken. React normalizes the use of many other types of input fields so that they are consumed in a very similar way. Making statements based on opinion; back them up with references or personal experience. has the user entered text in a numeric field. In HTML, form types such as