DEV Community

Discussion on: Creating a custom hook in React to control form input

Collapse
 
webzth profile image
WebDevZTH

Yeah absolutely, we need not have multiple onChange handlers either. The type parameter is for the input element's type attribute is required to mention what type of input it is, could be email, password, text, number, range etc.