loading...

re: No need to write change handlers for multiple React inputs! VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I often further simplify this by giving the <input> elements a name property & then using the following const changeHandler = (e) =>...
 

For the cases when you don't need current input state for validation, calculation, e.t.c you just can use uncontrolled inputs and read inputs' values via ref.

code of conduct - report abuse