multiple controlled inputs using single onChange function in react js

preview_player
Показать описание
single useState and onChange function for multiple input fields in react js.
in this video i will be using only one onChange function and only one useState function for four input fields and i will make all the input fields as controlled input field by feeding the state back to the input field's value prop.
Рекомендации по теме
Комментарии
Автор

Makes sense and straight to the point. Liked. Keep it up 👍

keifer
Автор

easy to use. reasons explained well. other creators be using custom syntax without explaining reason behind logic. great job

ajayivictor
Автор

YOU ARE SO UNDERRATED!!
thank you sir for this amazing and clear demonstration.
I have some feed back though, can you zoom your VS code screen next time.

iarawy.
Автор

Sir if you apply the key prop in each input like What would be the change? I am asking this question to you because I am not able to understand this flow. Please help me.

covertintocode
Автор

I have done the exact same thing.But I have encountered with a problem that after submitting, the field values cannot be reset. Could u please help me to resolve this

sreenathsnv
Автор

Bro I have a doubt , will it render each time when we type a letter in any input field.

reactDevelopment
Автор

How do you handle for file input change?

NPatHYA