No video

ReactJS Tutorial - 21 - Basics of Form Handling

  Рет қаралды 599,444

Codevolution

Codevolution

Күн бұрын

Пікірлер: 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
@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?
@igniz-2591
@igniz-2591 4 жыл бұрын
I swear this is the best Javascript/js frameworks teacher I had ever had
@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?
@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
@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)
@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
@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 5 ай бұрын
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
@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.
@HPec-ax
@HPec-ax 3 жыл бұрын
just got to know your channel from a friend....i don't know why KZfaq 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.
@LetCode96666
@LetCode96666 4 жыл бұрын
I have never seen any react tutorial that explains form handling as good as this one!
@unknownman1
@unknownman1 4 жыл бұрын
Mann m hai *VISHWAS* poora h *VISHWAS* hum honge kamyab ek din.
@chideraachinike7619
@chideraachinike7619 3 жыл бұрын
I watched other videos on this, but his one is just the best. Awesome! Much love! ❤️
@bulbulrani9307
@bulbulrani9307 4 жыл бұрын
I am seeing your videos for the past few days. It is great.
@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 👍...
@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.
@Amanda-qu9uw
@Amanda-qu9uw 2 жыл бұрын
Hi, is there a way to have this video redone for functional components rather than class components?
@hostname47
@hostname47 2 жыл бұрын
you can do it with hooks
@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.
@teshay93
@teshay93 3 жыл бұрын
Thank you for your CLEAR explanations. Great teacher!!
@mbusokotobe9793
@mbusokotobe9793 3 жыл бұрын
This is by far the best tut ey. I've browsed the whole KZfaq LOL!!!
@gutovp
@gutovp Жыл бұрын
You really have the gift of teaching. Thanks for this video and this fantastic whole series.
@jonesquartey5118
@jonesquartey5118 4 жыл бұрын
This man here is a lifesaver. Thank you
@scayir1905
@scayir1905 3 жыл бұрын
You are an absolute legend! Great at explaining topics with good examples.
@Ace718215
@Ace718215 3 жыл бұрын
what a jam packed video full of rich information. great work sir!
@electric336
@electric336 3 жыл бұрын
Best form handling video I've seen! Thank you very much, sir.
@JamesDoehring
@JamesDoehring 4 жыл бұрын
Can't get enough of these.
@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
@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 })); }; ...
@421prateek
@421prateek 3 жыл бұрын
exactly what i was looking for...🔥🔥💪
@dadasajad8741
@dadasajad8741 Жыл бұрын
Thanks so much, sir Vishwas. You are the best.
@Paparoo24
@Paparoo24 2 жыл бұрын
Love the way he explains things
@TheMostBeautifulSights
@TheMostBeautifulSights Жыл бұрын
I have learned a lot from your youtube video. Thank you very much!
@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?
@nipunakarunarathne9306
@nipunakarunarathne9306 Жыл бұрын
superb tutorial series ever
@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?
@lathagm666
@lathagm666 9 ай бұрын
Completed video 21. Thank you 🙂
@laxmanjonchhen6593
@laxmanjonchhen6593 3 жыл бұрын
Superb Video Big fan of your tutorial from nepal
@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
@ZSd4cT
@ZSd4cT 2 жыл бұрын
Fantastic tutorial! Much gratitude.
@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
@adriantolero6687
@adriantolero6687 2 жыл бұрын
Thank you so much for the very clear explanation!
@psangawar7130
@psangawar7130 5 жыл бұрын
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 😀
@fail-fixer
@fail-fixer 3 жыл бұрын
That's so much work for a fairly simple form!
@thusithad4160
@thusithad4160 3 жыл бұрын
From bottom to top great explanation :)
@alexb.2616
@alexb.2616 4 жыл бұрын
IT WAS FANTASTIC! Thank you very VERY much!
@omarattiyah8784
@omarattiyah8784 4 жыл бұрын
Really I'm Speechless Buddy..Thanks a lot
@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
@airbag9410
@airbag9410 4 жыл бұрын
Sir , The text is able to take inputs without writing onChange handler..is it updated in the newer versions
@galex23032
@galex23032 3 жыл бұрын
Great Job! Really clearly understood tutorial.
@farizmamad
@farizmamad 4 жыл бұрын
a clear explanation. Thank you so much. Have a great future.
@karundawadi876
@karundawadi876 4 жыл бұрын
Hey Codevolution, why do we not bind the events inside forms in the constructor ?
@davidforan1558
@davidforan1558 3 жыл бұрын
Since they are written as arrow functions ( const func = () => {} ) he doesn't need to bind them. :)
@monishkawale9052
@monishkawale9052 2 жыл бұрын
Many Many Thanks sir for crystal clear explanation
@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?
@marypaul9627
@marypaul9627 3 жыл бұрын
Wow,man you are a good teacher
@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
@rekhadodani5081
@rekhadodani5081 4 жыл бұрын
Really appreciated ur work...thank you so much....for clearing the concepts
@valikonen
@valikonen 4 жыл бұрын
I use Angular from version 1.2, React is so logic!
@elchino7672
@elchino7672 3 жыл бұрын
Absolutely wonderful
@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?
@nizamialimamedov5558
@nizamialimamedov5558 3 жыл бұрын
Great job man! 👍
@StefanRows
@StefanRows 3 жыл бұрын
Thanks, well explained!
@ajantica
@ajantica 2 жыл бұрын
I have a question, the alert did not work for me and I am not sure of the reason, please help me out
@hughluo8494
@hughluo8494 3 жыл бұрын
It is a good video, which is quite detail. THanks
@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?
@lathagm666
@lathagm666 9 ай бұрын
completed video 21. Thank you 🙂
@serektaibah4091
@serektaibah4091 2 жыл бұрын
Why do we need to do all of the setState steps when we can just remove the " Value " property and type whatever we want that way
@georgekrax
@georgekrax 4 жыл бұрын
Angular or React, which do you personally prefer?
@yasmeenalosimi3901
@yasmeenalosimi3901 2 жыл бұрын
you are an ammmazing instructor
@asfandyar8088
@asfandyar8088 2 жыл бұрын
Great Work👍👍👍
@aliimrancheema8166
@aliimrancheema8166 3 жыл бұрын
Thank you so much sir
@zainulkhan8381
@zainulkhan8381 2 жыл бұрын
Very nicely explained
@reviewsfitness
@reviewsfitness 4 жыл бұрын
You make so much sense when explaining do you have more courses?
@ErlWable
@ErlWable 2 жыл бұрын
This is really good, thank you very much
@tekqist28
@tekqist28 5 жыл бұрын
Thanks a lot! Do you have another on validation?
@danwhitmer8675
@danwhitmer8675 2 жыл бұрын
I have checked the code in this lesson and everything works except the Topics area. I look at the error I get from it and it says " cannot appear as a child of ." and "The tag is unrecognized in this browser." like I said everything works but it will not show the three choices. I do like your course and would recommend it to anyone. If you have any ideas on how to fix this, let me know please.
@manu.guarnaccia
@manu.guarnaccia 2 жыл бұрын
Very well explained. Thanks :)
@TusharBorawake
@TusharBorawake 2 жыл бұрын
Great video as always!!! I was expect video on "Redux-Form". I Hope you will surely create on that..Thanks :)
@mounirben9370
@mounirben9370 2 жыл бұрын
Excellent tutorial
@unayhtet354
@unayhtet354 3 жыл бұрын
thanks for your teaching sir.
@nibeditajena1042
@nibeditajena1042 5 жыл бұрын
keep uploading react topics .Thank you so much
@prashantkushwah9023
@prashantkushwah9023 Жыл бұрын
Functional Component or Class Component which is more beneficial then other and which should have used
@hirensoni7636
@hirensoni7636 Жыл бұрын
for controlled component 6:33 isnt binding required like before you mentioned ?
@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!
@mohammad_shariat
@mohammad_shariat 3 жыл бұрын
Great tutorial!
@AhamedKabeer-wn1jb
@AhamedKabeer-wn1jb 4 жыл бұрын
Wonderfull explantion...May god Bless you..
@cswalker21
@cswalker21 3 жыл бұрын
Great, thanks. It helped a lot.
@jagdishshetty4782
@jagdishshetty4782 5 жыл бұрын
Awesome tutorial !!! Thx !!!
@efrainlemus3047
@efrainlemus3047 2 жыл бұрын
so is there a video on how to actually submit a form that goes to an email address?
@TeluguNerds
@TeluguNerds 4 жыл бұрын
So, am I the only one who finds it's odd to write a handler function to each and every field in the form ? also, most of the code is repeated in those functions.. I don't think this approach is used in real time projects. So, if you have done any real time project using react, Do you have a better approach?
@nkbanerjee2549
@nkbanerjee2549 Жыл бұрын
Bestest till now...I've understood the form handling such a way that I can readily work on this now..thank you so much buddy ❤️🫰
@yadnyeshrane7448
@yadnyeshrane7448 3 жыл бұрын
the content is great i just have one dout please clear some one why dont we bind the handelUserChange method in the constructor
@samyever2be
@samyever2be 4 ай бұрын
It will helpful current version of react?
@AdityaKumar-gj8ex
@AdityaKumar-gj8ex 3 жыл бұрын
why did we not bind the the event handlers as told in earlier videos ??
@codeworld8748
@codeworld8748 2 жыл бұрын
Form chyumpo redux form vs formik vs react-hook-form difference chyamo.. which one is better
@himanshujanbandhu2318
@himanshujanbandhu2318 3 жыл бұрын
You are best sir ....
@AdityaSharma-rj2ef
@AdityaSharma-rj2ef 3 жыл бұрын
Here , the on submit is passed to form tag not to button ,but on change is passed to input. How does react know that when we click button it has to alert .
@jatinkamboj5152
@jatinkamboj5152 5 жыл бұрын
Awesome Content Bro .
ReactJS Tutorial - 22 - Component Lifecycle Methods
2:39
Codevolution
Рет қаралды 399 М.
ReactJS Tutorial - 20 - Styling and CSS Basics
11:40
Codevolution
Рет қаралды 506 М.
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
天使救了路飞!#天使#小丑#路飞#家庭
00:35
家庭搞笑日记
Рет қаралды 88 МЛН
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18
Мы сделали гигантские сухарики!  #большаяеда
00:44
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 264 М.
BEST Ways to Handle and Validate React Forms without a Library
42:38
The New Option and Result Types of C#
15:05
Nick Chapsas
Рет қаралды 58 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 601 М.
4 Tips To Succeed As A Self Taught Developer
11:08
Web Dev Simplified
Рет қаралды 39 М.
ReactJS Tutorial - 19 - Index as Key Anti-pattern
11:00
Codevolution
Рет қаралды 317 М.
ReactJS Tutorial - 23 - Component Mounting Lifecycle Methods
10:37
Codevolution
Рет қаралды 375 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,5 МЛН
React Hook Form - Complete Tutorial (with Zod)
28:22
Cosden Solutions
Рет қаралды 105 М.
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН