Тёмный

ReactJS Tutorial - 21 - Basics of Form Handling 

Codevolution
Подписаться 652 тыс.
Просмотров 596 тыс.
50% 1

📘 Courses - learn.codevolution.dev/
💖 Support UPI - support.codevolution.dev/
💖 Support PayPal - www.paypal.me/Codevolution
💾 Github - github.com/gopinav
📱 Follow Codevolution
+ Twitter - / codevolutionweb
+ Facebook - / codevolutionweb
📫 Business - codevolution.business@gmail.com

Опубликовано:

 

1 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 288   
@arimirarim
@arimirarim 4 года назад
I don't think I have ever paid for free videos, but to you, I sent "support" money happily. The best instructables on youtube I know. Great work!
@Codevolution
@Codevolution 4 года назад
Thank you very much :)
@pavankumar4909
@pavankumar4909 3 года назад
@@Codevolution how to saved and display information in another page please please explain in same form
@garvitsingh9149
@garvitsingh9149 3 года назад
@@pavankumar4909 Watch his first two videos in this playlist of react tutorial of 73 videos...👍👍.
@karanfotedar07
@karanfotedar07 3 года назад
i second this... he has really explained so very well and till now I haven't actually saw anyone explaining in this detail and so much clearity
@currentadda7884
@currentadda7884 3 года назад
best instructor
@igniz-2591
@igniz-2591 4 года назад
I swear this is the best Javascript/js frameworks teacher I had ever had
@motilimkayes1352
@motilimkayes1352 4 года назад
Great video as always!!! I will add that you don't have to add different handler for each input, you can use the same handler for all of them like that: handleInput = (e) => { this.setState({ [e.target.name]: e.target.value, }); as long as you give each input the same name as the name you gave the key in the state. examle: this.state.userName then the input should look like this: type="text" name="userName" onChange={this.handleInput} value={userName} /> this way you can have one handler for all inputs
@Dakun
@Dakun 4 года назад
Thank you for this
@somegotsson
@somegotsson 4 года назад
This is great to know, thank you.
@zizaweb
@zizaweb 3 года назад
It's very useful and simple👍
@zizaweb
@zizaweb 3 года назад
It's very useful and more simple👍
@andriusmurauskas206
@andriusmurauskas206 2 года назад
Thank you, this is great. Is this option viable with functional components using hooks?
@engageintellect
@engageintellect 2 года назад
Watched like 7 tutorials on doing forms in react. This is the only one that made any sense. Subscribed, and thank you for the clear explanations. You’re a fantastic teacher, and I really appreciate this content.
@ShivamVerma-gq2sm
@ShivamVerma-gq2sm 4 года назад
'let me break it down and then we can look at the code'.... you gained a subscriber!.. great explanation step by step ! thankyou
@toannew
@toannew 3 года назад
0:40 controlled component 6:35 controlled components for a text area and select tag 12:09 the data of form is lost after refresh => preventDefault()13:35 destructuring the state
@ashutoshtaide5760
@ashutoshtaide5760 3 года назад
Thank you for such a great tutorial series. There was not a single concept that I was not able to understand from your 'ReactJS Tutorial for Beginners' series. Keep making such great content.
@shh90
@shh90 4 года назад
watched 3 other tutorials by other youtubers, i feel like you have the best videos. thanks a lot. really appreciate these guides!
@arochomsky9254
@arochomsky9254 Год назад
118 videos, but this is the most useful tutorial I had found, I'm expecting to watch it till the end. Thank you! (after 4 years, all the videos till this one still working just fine)
@sudarshan_savvy
@sudarshan_savvy 4 года назад
you know, after watching videos from brad traversy, colt steel and all other, you are the only tutor that cleared all the mess in my mind. Best tutor ever. 😊 God bless you for your work.
@sumitp9158
@sumitp9158 Год назад
how is colt steele for react?
@HPec-ax
@HPec-ax 3 года назад
just got to know your channel from a friend....i don't know why RU-vid never recommended me any of your videos. Best react tutorial by far...short, clear and on point.
@hosseinahmadi4155
@hosseinahmadi4155 4 года назад
At the end, when you said thank you, I said thank you. Thank you.
@teshay93
@teshay93 3 года назад
Thank you for your CLEAR explanations. Great teacher!!
@chideraachinike7619
@chideraachinike7619 3 года назад
I watched other videos on this, but his one is just the best. Awesome! Much love! ❤️
@unknownman1
@unknownman1 4 года назад
Mann m hai *VISHWAS* poora h *VISHWAS* hum honge kamyab ek din.
@scayir1905
@scayir1905 3 года назад
You are an absolute legend! Great at explaining topics with good examples.
@mbusokotobe9793
@mbusokotobe9793 3 года назад
This is by far the best tut ey. I've browsed the whole RU-vid LOL!!!
@electric336
@electric336 3 года назад
Best form handling video I've seen! Thank you very much, sir.
@bulbulrani9307
@bulbulrani9307 4 года назад
I am seeing your videos for the past few days. It is great.
@gutovp
@gutovp Год назад
You really have the gift of teaching. Thanks for this video and this fantastic whole series.
@Ace718215
@Ace718215 3 года назад
what a jam packed video full of rich information. great work sir!
@srijasharma.s7864
@srijasharma.s7864 2 года назад
I saw lots of video for form Handling but no one able to understand at once I have to repeat each multi time then it understood a little.. But after watching ur video it's clearly understand at first time thx for ur effort 👏🤝 do more I will support ur effort 👍...
@ProSimples
@ProSimples 3 года назад
I am from Brazil as a backend developer. And I have to say that I've tried to learn react many times but with no success. Your videos are giving me the best learning experience. I really appreciated your series.
@giftjeremiah3312
@giftjeremiah3312 4 месяца назад
Im also a backend dev and I’ve tried learning react so many times and gave up. But he gave me a good learning experience too. Now I’m confident of becoming a full stack dev
@rajnandanibhawsar3105
@rajnandanibhawsar3105 2 года назад
You are my idol Vishwas. I want to learn from where you learn everything because everyone learns from somewhere. I want to be like you. The way you clear the concept with an example.
@aakashnarwade3629
@aakashnarwade3629 3 года назад
we are gifted this amazing youtuber by god .Thanks for putting out all such quality content for free.Its helping us alot cant even explain.
@farizmamad
@farizmamad 4 года назад
a clear explanation. Thank you so much. Have a great future.
@rekhadodani5081
@rekhadodani5081 4 года назад
Really appreciated ur work...thank you so much....for clearing the concepts
@JamesDoehring
@JamesDoehring 4 года назад
Can't get enough of these.
@jonesquartey5118
@jonesquartey5118 4 года назад
This man here is a lifesaver. Thank you
@fail-fixer
@fail-fixer 3 года назад
That's so much work for a fairly simple form!
@galex23032
@galex23032 3 года назад
Great Job! Really clearly understood tutorial.
@pmanasi93
@pmanasi93 Год назад
Hi, you are a great tutor, you breaks everything into a simpler steps. Is there any video for form handling in functional components
@LetCode96666
@LetCode96666 4 года назад
I have never seen any react tutorial that explains form handling as good as this one!
@ZSd4cT
@ZSd4cT 2 года назад
Fantastic tutorial! Much gratitude.
@421prateek
@421prateek 3 года назад
exactly what i was looking for...🔥🔥💪
@alexb.2616
@alexb.2616 4 года назад
IT WAS FANTASTIC! Thank you very VERY much!
@Paparoo24
@Paparoo24 2 года назад
Love the way he explains things
@thusithad4160
@thusithad4160 3 года назад
From bottom to top great explanation :)
@lathagm666
@lathagm666 9 месяцев назад
Completed video 21. Thank you 🙂
@adriantolero6687
@adriantolero6687 Год назад
Thank you so much for the very clear explanation!
@dadasajad8741
@dadasajad8741 11 месяцев назад
Thanks so much, sir Vishwas. You are the best.
@monishkawale9052
@monishkawale9052 2 года назад
Many Many Thanks sir for crystal clear explanation
@nipunakarunarathne9306
@nipunakarunarathne9306 Год назад
superb tutorial series ever
@TheMostBeautifulSights
@TheMostBeautifulSights Год назад
I have learned a lot from your youtube video. Thank you very much!
@nibeditajena1042
@nibeditajena1042 5 лет назад
keep uploading react topics .Thank you so much
@omarattiyah8784
@omarattiyah8784 3 года назад
Really I'm Speechless Buddy..Thanks a lot
@reviewsfitness
@reviewsfitness 4 года назад
You make so much sense when explaining do you have more courses?
@jagdishshetty4782
@jagdishshetty4782 5 лет назад
Awesome tutorial !!! Thx !!!
@saraa404
@saraa404 4 года назад
thankyou for the tutorial. So for every form element we need to add event listener? Isnot there any other efficient way of getting form values once for all elements on form submit? Also how to update an array of objects with form data?
@laxmanjonchhen6593
@laxmanjonchhen6593 3 года назад
Superb Video Big fan of your tutorial from nepal
@Amanda-qu9uw
@Amanda-qu9uw 2 года назад
Hi, is there a way to have this video redone for functional components rather than class components?
@hostname47
@hostname47 Год назад
you can do it with hooks
@unayhtet354
@unayhtet354 3 года назад
thanks for your teaching sir.
@valikonen
@valikonen 4 года назад
I use Angular from version 1.2, React is so logic!
@lathagm666
@lathagm666 9 месяцев назад
completed video 21. Thank you 🙂
@walkwithmanish
@walkwithmanish 5 лет назад
good knowledgable video quite useful.
@ryanwood9288
@ryanwood9288 2 года назад
Functional handler for all form inputs. Values will be an object where the key is the "name" attribute of each input and the value is the value of the input upon submission. const [values, setValues] = useState(); const handleInputChange = (e) => { setValues((prevState) => ({ ...prevState, [e.target.name]: e.target.value })); }; ...
@nizamialimamedov5558
@nizamialimamedov5558 3 года назад
Great job man! 👍
@jatinkamboj5152
@jatinkamboj5152 5 лет назад
Awesome Content Bro .
@AhamedKabeer-wn1jb
@AhamedKabeer-wn1jb 4 года назад
Wonderfull explantion...May god Bless you..
@cswalker21
@cswalker21 3 года назад
Great, thanks. It helped a lot.
@zainulkhan8381
@zainulkhan8381 2 года назад
Very nicely explained
@StefanRows
@StefanRows 3 года назад
Thanks, well explained!
@marypaul9627
@marypaul9627 3 года назад
Wow,man you are a good teacher
@hughluo8494
@hughluo8494 3 года назад
It is a good video, which is quite detail. THanks
@manu.guarnaccia
@manu.guarnaccia 2 года назад
Very well explained. Thanks :)
@vigneshgvs
@vigneshgvs 2 года назад
1. event.target.value -> value 2. event handler method -> takes event as a parameter 3. this.setState 4. value={this.state.var} -> to be in sync 5. e.preventDefault() - as name suggests 6. select + option, label, input +text, textarea, submit - tags. value attribute
@ErlWable
@ErlWable 2 года назад
This is really good, thank you very much
@psangawar7130
@psangawar7130 4 года назад
Instead of just email, you could have a real world object say Person with some mandatory fields such as first name, last name, dob, email etc and club if with foam validation with error handling in say 2 or 3 parts...this would help most beginners to intermediate coders...just a suggestion. Otherwise, great tutorials as usual coming from you...I have over 30 years of IT experience in USA...lol...and always enjoy learning new technologies 😀
@elchino7672
@elchino7672 3 года назад
Absolutely wonderful
@yasmeenalosimi3901
@yasmeenalosimi3901 2 года назад
you are an ammmazing instructor
@mohammad_shariat
@mohammad_shariat 3 года назад
Great tutorial!
@adnantariq3346
@adnantariq3346 4 года назад
Hi, love your videos. I’m trying to create multiple pages. When I navigate from one page to another, I want the data that was filled by the user to be saved automatically. Note the user has not submitted anything yet, nor there is any save button. The user has simply jumped from one page with form components to another page with other form components using react routers... And I want whatever the user entered saved Can that be done? When the user goes back to the pervious page, the user can pick up where he left off? Of course all this eventually will go to the redux store. But I’m trying to solve the “saved” state of these form even after navigating to other components/pages using react routers
@mounirben9370
@mounirben9370 2 года назад
Excellent tutorial
@asfandyar8088
@asfandyar8088 2 года назад
Great Work👍👍👍
@TusharBorawake
@TusharBorawake 2 года назад
Great video as always!!! I was expect video on "Redux-Form". I Hope you will surely create on that..Thanks :)
@tekqist28
@tekqist28 5 лет назад
Thanks a lot! Do you have another on validation?
@aliimrancheema8166
@aliimrancheema8166 3 года назад
Thank you so much sir
@mdridoy-ef2pw
@mdridoy-ef2pw 3 года назад
watched few other videos.But this was very clear and easy to follow. By the way, is there any way to use only one changehandler for all input fields?
@ajaybatham3622
@ajaybatham3622 4 года назад
Great Sir...
@swathivenkatesh465
@swathivenkatesh465 2 года назад
Great video sir
@shashankpandey1966
@shashankpandey1966 4 года назад
Awesome tutorial
@himanshujanbandhu2318
@himanshujanbandhu2318 3 года назад
You are best sir ....
@PeaceMatters5
@PeaceMatters5 3 года назад
Great tutorial!! :-D
@airbag9410
@airbag9410 4 года назад
Sir , The text is able to take inputs without writing onChange handler..is it updated in the newer versions
@pradheeprajac9099
@pradheeprajac9099 4 года назад
Hi, I tried your code sample & is working perfectly. But I wanted to make a small change where I am struck now. How to get the combo box text instead of the value? That is, I want the text "React" and not the value "react". Please help me to figure this out. Thanks!
@orkhanrzali7063
@orkhanrzali7063 Год назад
Hi Vishwas, Thank you for great tutorials that you provide for free. I was wondering why don't we bind those class methods as we did before?
@Virus-ke8xj
@Virus-ke8xj 4 года назад
Can't we do event binding over here, so that we can use non-arrow functions? If we can do so, can we have event as parameter?
@Aditya.Santra
@Aditya.Santra 2 года назад
Amazing Video
@ai.201
@ai.201 3 года назад
Thankyou so much
@augittec8562
@augittec8562 2 года назад
you are great bro
@tuatkiep9702
@tuatkiep9702 Год назад
thank you very much
@101_shambhavisharma8
@101_shambhavisharma8 3 года назад
I have created a form in similar manner as shown but when i click on submit button it does not show any pop up with all values inserted. How can this get resolved?
@ravivegan5442
@ravivegan5442 4 года назад
i always consider a form handling means method and url to which it will be posted. it just html of form.
@prudhvimallavarapu975
@prudhvimallavarapu975 3 года назад
Hello sir, for the select option, if the user does not change the option and hits the submit button then the state not get updated with the default option value right? how can we pass the default selected value to the state?
@gtrj55tgjr
@gtrj55tgjr 4 года назад
Sir Nice video but one question what if we have more than 20-30 controls/fields then by this way we have to make 30 function and set their state 30 times, why dont we make only one function and get all the values of a fields , how we do this? how to get all the input field value when clicked submit button
@julioagustinmayorga2084
@julioagustinmayorga2084 3 года назад
so good 👏👏👏
@flaviamiranda9811
@flaviamiranda9811 2 года назад
I don't know if this is a dumb question (if it is I apologise in advance lol) but when you press Submit in 12:33, for the element, I noticed the alert brings the *value* of the element, and not the filling of the tag, which would be React with an upper-case R, is that expected? So when the user fills in the username and comment, would that be the values of the inputs username and comment?
@KeaganStRose
@KeaganStRose 4 года назад
Thank you
@AkshayKumar-uh5cf
@AkshayKumar-uh5cf 4 года назад
There is an issue here, when first time form loads and if we not change the select value then it wont show any select value.... please update here!!!!
@ksk235
@ksk235 4 года назад
Hi Vishwas, great tutorial man. Your tutorial qualities are top notch as usual. I have a question though. When you're updating state using this.setstate({topic: event.target.value}), you are not passing the values of other two properties of the state object. I am assuming the state object is immutable. So when you're passing just one value, why aren't the other two values getting removed? Is React internally calling this.state = {...this.state, topic: event.target.value}. I'll be glad if you reply to this question
Далее
ReactJS Tutorial - 22 - Component Lifecycle Methods
2:39
ReactJS Tutorial - 20 - Styling and CSS Basics
11:40
Просмотров 503 тыс.
UNO!
00:18
Просмотров 757 тыс.
All The JavaScript You Need To Know For React
28:00
Просмотров 588 тыс.
ReactJS Tutorial - 18 - Lists and Keys
7:32
Просмотров 385 тыс.
ReactJS Tutorial - 28 - Refs
9:33
Просмотров 333 тыс.
Full React Tutorial #27 - Controlled Inputs (forms)
9:27
ReactJS Tutorial - 19 - Index as Key Anti-pattern
11:00
React Tutorial for Beginners
1:20:04
Просмотров 2,9 млн
Every React Concept Explained in 12 Minutes
11:53
Просмотров 514 тыс.