BEST Ways to Handle and Validate React Forms without a Library

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 มิ.ย. 2024
  • React form validation tutorial. How to handle and validate React form inputs using different ways. Handling forms in React using useState, useRef and FormData.
    Support the channel: / @lamadev
    Buy me a coffee: www.buymeacoffee.com/lamadev
    Source Code: github.com/safak/youtube/tree...
    Join Lama Dev groups
    Facebook: / lamadev
    Instagram: / lamawebdev
    Discord: / discord
    0:00 Introduction
    0:45 Creating Forms in React
    06:48 How to Prevent Re-rendering
    12:15 Don't be afraid of re-rendering when using forms
    12:55 How to handle a form with multiple inputs
    20:54 React Login/Register Form Design
    24:24 React Form Input Validation and Displaying Errors
    41:56 Outro
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 296

  • @kashmirtechtv2948
    @kashmirtechtv2948 2 ปีที่แล้ว +39

    The best thing about Lama is that he tells all the possible methods amd then suggests us the best method and that's what most of the channels lack. They force their own methods on viewers Infact those methods are much difficult and outdated. But Lama makes everything easy and useful. 👍👍👍

  • @raymondcaddick6208
    @raymondcaddick6208 2 ปีที่แล้ว +4

    I've just come across your channel and I'm so excited to work through each example you have! Really appreciate the fact that you write everything from scratch so we can see the full picture!

  • @adebisisheriff159
    @adebisisheriff159 ปีที่แล้ว +6

    I fell in love with Lama Dev channel because, we focus on real world project. No copy and paste... All code from scratch with step by step explanation. I do not even know how to thank you for the awesome job you doing for us. I BIG THANK YOU TO YOU LAMADEV and I self-congratulatory message to me for stumble into your channel

  • @zuzukouzina-original
    @zuzukouzina-original ปีที่แล้ว +7

    You are one of the best tutors on TH-cam 💪🏼 You have the best examples that can be used in a real application.
    Thank you very very much, I mean it from the bottom of my heart ❤️

  • @Jimmy-zt5io
    @Jimmy-zt5io ปีที่แล้ว +7

    I have been learning React since January and I have never seen someone make a form like u did ! not to mention the way u handle the input validation and errors just with html and css ! that was impressive! Subscribed!

  • @VladimirMitrofanovph
    @VladimirMitrofanovph 2 ปีที่แล้ว +20

    Thanks man! That's one of the best tutorials on React forms I've encountered so far. Very clear and I've learned a lot from these 42 minutes. Incredibly good job

  • @atifulislamasif7893
    @atifulislamasif7893 ปีที่แล้ว +1

    Your contents are so easy to understand, and you provide a lot of topics and features in a single video. I am truly grateful to have come across your channel. Thank you for your hard work.

  • @softmerit25
    @softmerit25 2 ปีที่แล้ว +2

    This is really great and amazing. Your tutorials are excellent and simple to understand. Keep on the great work! You're a good teacher.

  • @malemyengkhom56
    @malemyengkhom56 2 ปีที่แล้ว +2

    You got a new subscriber. Now in my todo list I have written down to watch atleast one video from your channel each day. Keep making more project videos ❤️🔥🙌

  • @ferdinandeke9590
    @ferdinandeke9590 2 ปีที่แล้ว +3

    This is amazing, I was gonna ask this question on form validations and the best way to do it and how we could use CSS to make sure certain characters only are inputted .. You're really a guardian angel as well Lama as regards coding.. cos you look out for us even where we may not really look out on.. thanks .. you're deeply appreciated..

  • @ojiinnocent9117
    @ojiinnocent9117 2 ปีที่แล้ว

    Just this morning I was searching for form validation tuts on TH-cam and now this. Just right in time. Thanks, man

  • @barraganroberto
    @barraganroberto ปีที่แล้ว

    This is just an amazing tutorial that I keep revisting from times to times. Thank you very much!

  • @onlineeslcanada
    @onlineeslcanada 2 ปีที่แล้ว

    This is great. Most useful, practical, real-world usage. Thanks!

  • @nbryson2010
    @nbryson2010 2 ปีที่แล้ว

    Thx Lama! The native solution that you have shown me is fantastic. You're a rock star. I'll be checking back for more tutorials for sure.

  • @jonatasdeoliveiracoelho4691
    @jonatasdeoliveiracoelho4691 2 ปีที่แล้ว

    So well explained! Good job, Lama Dev! Thank you!

  • @Nellak2011
    @Nellak2011 2 ปีที่แล้ว

    Thank you for this Masterclass! Absolutely loved it.

  • @psyferinc.3573
    @psyferinc.3573 ปีที่แล้ว

    i cant state enough how you are the best at opening our eyes to the basics

  • @SkippyTheCanadianKangaroo
    @SkippyTheCanadianKangaroo 11 หลายเดือนก่อน

    My man! This is awesome! I have been looking for this as i don't like having so many library's and i didn't realize it was this simple! Thank you very much! Now to figure out on validation on the back end and learn bycrypt!

  • @davidsapkota5326
    @davidsapkota5326 6 หลายเดือนก่อน

    First time on your TH-cam channel, and I must say, your coding tutorials are very easy to understand. Thanks, bro!

  • @luisalbertovillarortiz7424
    @luisalbertovillarortiz7424 ปีที่แล้ว

    Undoubtedly by far one of the best react forms tutorials for free.

  • @fw-ho7si
    @fw-ho7si 2 ปีที่แล้ว

    Thank you so much for this! Love all of your tutorials. So helpful! 💜

  • @prathamesh3299
    @prathamesh3299 2 ปีที่แล้ว

    I used hate react but when I found your channel I started loving it so thankyou. currently I'm following you social media app series it's ammazing man thanks for this amazing knowledge for free I'm going buy you so many coffee wjen i'll resume my freelance career my god will always bless you.

  • @lilmeat-xj7ru
    @lilmeat-xj7ru ปีที่แล้ว

    Great tutorial I have been spending lots of time on creating forms in React and this helped me very much thank you!!!!!

  • @khizrshaikh9902
    @khizrshaikh9902 2 ปีที่แล้ว +1

    Thank you so much for these awesome projects and tutorials

  • @nguyenkien5558
    @nguyenkien5558 2 ปีที่แล้ว

    You are just a incredible man! Thank you for your contributions.

  • @karis8143
    @karis8143 2 หลายเดือนก่อน

    I wanted to take a moment to express my sincere gratitude for the incredible tutorial you provided on React form creation and validation. Your clear explanations, step-by-step guidance, and practical examples made the learning process smooth and enjoyable.
    Thanks to your tutorial, I now have a much better understanding of how to leverage React's capabilities to create dynamic and user-friendly forms while ensuring data integrity through validation techniques. Your expertise and teaching style have truly empowered me to enhance my React skills and build more robust applications.
    I deeply appreciate the effort you put into creating such valuable content and sharing your knowledge with the community. Your dedication to helping others learn is truly commendable, and I'm grateful to have stumbled upon your tutorial.
    Once again, thank you for your outstanding contribution to the React developer community. I look forward to exploring more of your tutorials and continuing to expand my knowledge under your guidance.
    More I use this opportunity to request that you add selection options to the form and checkbox, radio etc

  • @saltanoi5535
    @saltanoi5535 2 ปีที่แล้ว

    Thank you! I really improved my code after i watched your video - immideatly made a refractor and it looks much cleaner, and i also can reuse my components better now. Thanks again, expaining was very clear

  • @nicmackenzie
    @nicmackenzie ปีที่แล้ว

    Another great video Lama. You are just awesome. Keep up the good work

  • @vaishnavia.n.312
    @vaishnavia.n.312 2 ปีที่แล้ว

    Amazing video, I did not know about the pattern attribute and have learned much from you,Thank u Lama.

  • @fredrickdenga7552
    @fredrickdenga7552 2 ปีที่แล้ว

    Safak thank for this brilliant react forms tutorial much appreciated💯

  • @Offiziersmesser
    @Offiziersmesser 10 หลายเดือนก่อน

    Wow, this teaching style is art!💯

  • @subramanyam.d24m56
    @subramanyam.d24m56 2 ปีที่แล้ว +1

    Thanks a lot for explaining how to place input elements in array of objects.

  • @uttamdutta1762
    @uttamdutta1762 ปีที่แล้ว

    Another amazing learning path for me. Thanks lama.

  • @user-wq9oy7hx6z
    @user-wq9oy7hx6z ปีที่แล้ว

    Many thanks, Lama! It's awesome and clean way!

  • @raularmendariz7873
    @raularmendariz7873 ปีที่แล้ว

    Thanks for this! Really clear explanations! 🙌

  • @xplore2000
    @xplore2000 2 ปีที่แล้ว

    Always releasing nice and amazing tutorial😀
    You really change my life sir

  • @djsmith3730
    @djsmith3730 2 ปีที่แล้ว

    Thanks for the new content, really appreciate it - I will surely subscribe to you for a few months after I change careers; which is very soon and you've helped it with the react stuff. thanks bro, you've made a difference - to quite a few people's lives. I'll show you the project when its done

  • @stillsmart
    @stillsmart 7 หลายเดือนก่อน

    Cool React form handling. Thank you

  • @zeelthakkar2751
    @zeelthakkar2751 2 ปีที่แล้ว

    Really Helpful Sir. Code is really easy to understand. Thank You

  • @MdHasanAli-rb8no
    @MdHasanAli-rb8no หลายเดือนก่อน

    An awesome video, I appreciate your approach.

  • @CaliburPANDAs
    @CaliburPANDAs ปีที่แล้ว +1

    Validation starts at 24:24 Great video! Thanks Lama

  • @Lee-rd4cs
    @Lee-rd4cs 2 ปีที่แล้ว

    This is exactly what I wanted! thank you so much

  • @serhanmaknik466
    @serhanmaknik466 2 ปีที่แล้ว

    Eline sağlık kardeşim, çok yardımcı oldun gerçekten. Yeni şeyler öğrendim sayende :)

  • @user-ur2xe1br4g
    @user-ur2xe1br4g 11 หลายเดือนก่อน

    Been coding in js for 6 months and just now I learned that clg trick LOL
    Appreciate it.

  • @karlithoscolima
    @karlithoscolima 2 ปีที่แล้ว

    Love it mate , you are other level!

  • @oscargm1979
    @oscargm1979 2 ปีที่แล้ว

    😛Amazing tutorial!. Thanks again Lama.I will use it in my forms in React.Awesome! 😇

  • @neerajkanojiya8098
    @neerajkanojiya8098 2 ปีที่แล้ว

    Excellent example and very well explained..
    Greate job... ❤️

  • @jameskayihura1675
    @jameskayihura1675 2 ปีที่แล้ว

    What a awesome tutorial! Thanks a lot.

  • @WillSmith-qt7me
    @WillSmith-qt7me ปีที่แล้ว

    Great video for the forms. Thanks!

  • @saurabhdaswant7833
    @saurabhdaswant7833 2 ปีที่แล้ว

    Wow I was really struggling to do validation stuff on my job projects and always used to was some new tutorials but i was never statisfied with the solution!
    Now i wont be getting frustrated again again Thank you so much Lama 💙💙💙💙💙

  • @ahmetulutas8491
    @ahmetulutas8491 ปีที่แล้ว

    This is the best channel. Thanks a million abi!

  • @guilhemlinde
    @guilhemlinde ปีที่แล้ว

    Very clean code. Thank you for this. Subscribed.

  • @satishmaurya2089
    @satishmaurya2089 2 ปีที่แล้ว

    Thankyou so much Lama sir, it is very useful and really enjoyed it.🙂🙂

  • @michaelodikanwa442
    @michaelodikanwa442 ปีที่แล้ว

    Learning so much from you man🙌

  • @altafhossain4989
    @altafhossain4989 ปีที่แล้ว

    Thanks Lama, It is very easy to follow. Continue to build more.

    • @aymanabid9545
      @aymanabid9545 ปีที่แล้ว

      Hello, need some help.
      In onChange function, coma is used after ...values which is giving the parsing error.
      How to fix that? Any idea?

  • @elpake98
    @elpake98 ปีที่แล้ว

    Thanks so much, im building a quiz-forms app and this video helped me to improve my code!

  • @mdsolayman9558
    @mdsolayman9558 2 ปีที่แล้ว

    Hi Sir, You are really awesome. Keep teaching us. Lot of love from Bangladesh.

  • @m.waseem6616
    @m.waseem6616 ปีที่แล้ว

    The tutorial was absolutely stunning. Please make a video on context api as well.
    Thanks.

  • @sivasankars9418
    @sivasankars9418 2 ปีที่แล้ว

    Thanks for providing this video learned a lot

  • @saifullahrahman
    @saifullahrahman ปีที่แล้ว

    thanks a lot mate! That was so helpful!

  • @benkay157
    @benkay157 3 หลายเดือนก่อน

    Great job, love this Masterclass. To add a cherry on top of the cake, please make another video on how to handle dynamic errors

  • @arnoldvhanda
    @arnoldvhanda ปีที่แล้ว

    You are a legend we need more n more

  • @michaelwambua1492
    @michaelwambua1492 2 ปีที่แล้ว

    Nice tutorials. I like them, they are well explained

  • @sammedsankonatti9642
    @sammedsankonatti9642 2 ปีที่แล้ว

    Best form creation 🔥 and validation video on the TH-cam

  • @peteplays604
    @peteplays604 2 ปีที่แล้ว +7

    Great video!
    What should the behavior be on submit? How do we ensure the form is validated before clearing it, redirecting, etc.?

  • @yar1320
    @yar1320 ปีที่แล้ว

    Very good Tutorial, very well explained thanks very much...!

  • @titimaelouidad3880
    @titimaelouidad3880 4 หลายเดือนก่อน

    this is the best React tutorial ever

  • @shahipapon833
    @shahipapon833 2 ปีที่แล้ว

    This is so amazing ❤️ NOW i realise how dull we are 😬
    Thanks a lot fot this amazing outstanding tutorial. Best wishesh from my heart ❤️

  • @mehrdad.sabori
    @mehrdad.sabori 10 หลายเดือนก่อน +1

    خیلی عالی بود دمت گرم من که ایرانی هستم با توضیحات خوبت خیلی خوب فهمیدم مرسی بابت زحماتت

  • @eumm11
    @eumm11 หลายเดือนก่อน

    incredible buddy, thank you so much :)

  • @SohailKhan-gu2du
    @SohailKhan-gu2du ปีที่แล้ว

    thanks man, need more videos from you

  • @SagorKhan-zk4ix
    @SagorKhan-zk4ix ปีที่แล้ว

    Thanks lama, for this nice tutorial

  • @vismal2007
    @vismal2007 3 หลายเดือนก่อน

    Awesome! Thank you mate!

  • @deeee_veeen
    @deeee_veeen ปีที่แล้ว

    This is a great example thank you❤

  • @msalam4248
    @msalam4248 ปีที่แล้ว

    so neat and clean tutorial

  • @Corntrop
    @Corntrop 2 ปีที่แล้ว

    Wow i didnt know that its that easy. And didnt know form data. So cool. Thank you

  • @alivelidurali
    @alivelidurali 2 ปีที่แล้ว

    lama is the best , I love your video man

  • @yho6
    @yho6 8 หลายเดือนก่อน

    Thank you very much, I mean it from the bottom of my heart ❤ and it is a very practical example

  • @SathishKumar-rz5nl
    @SathishKumar-rz5nl 2 ปีที่แล้ว

    This is amazing...please make more dynamic projects

  • @vairamuthuvairam9552
    @vairamuthuvairam9552 หลายเดือนก่อน

    I am bigginer in react .it very usefull your tutorial .You are improve my Life

  • @erojoseph604
    @erojoseph604 ปีที่แล้ว

    Thank you very much, I found this very useful

  • @crinceebelempou6611
    @crinceebelempou6611 9 หลายเดือนก่อน

    This is so amazing I like the way you teach 😊😊😊

  • @hmssdghsdhansara4931
    @hmssdghsdhansara4931 ปีที่แล้ว

    Validating form using the data from backend, that will be a good thing to learn.. waiting for that video

  • @thuco9310
    @thuco9310 2 ปีที่แล้ว

    Thank you. This video is very useful.

  • @stefanhupp7945
    @stefanhupp7945 ปีที่แล้ว

    Really nice video.
    i try to use some of it in our project

  • @deogenesabejuela7016
    @deogenesabejuela7016 10 หลายเดือนก่อน

    amazing tutorials. thank you so much!. I learned a lot :-)

  • @telur_ramen
    @telur_ramen 2 ปีที่แล้ว

    thank you so much, you taught me a lot!

  • @webhook4729
    @webhook4729 2 ปีที่แล้ว

    Lama dev, You are amazing man....!!

  • @Dzirmal
    @Dzirmal ปีที่แล้ว

    Thanks man, I've leared a lot.

  • @airnodes8248
    @airnodes8248 ปีที่แล้ว

    Very helpful, thanks!

  • @veyselbasbaydar5665
    @veyselbasbaydar5665 ปีที่แล้ว

    the best validation tutorial ever !!! Agzina saglik baskan

  • @Japan4Ever
    @Japan4Ever ปีที่แล้ว

    Awesome. Thanks always.

  • @demno2258
    @demno2258 8 หลายเดือนก่อน

    thanks it is great and valuable lecture

  • @getshou
    @getshou ปีที่แล้ว

    Legendary! Thanks!!

  • @oluwaseunajibowo7422
    @oluwaseunajibowo7422 3 หลายเดือนก่อน

    This is super helpful

  • @user-yv4tn5ll9z
    @user-yv4tn5ll9z 2 ปีที่แล้ว

    my ideal form layout, thanks)

  • @codernasir1549
    @codernasir1549 2 ปีที่แล้ว

    Hello Lama Dev, Take love from deep heart. I love you.

  • @laoadventuretour5012
    @laoadventuretour5012 ปีที่แล้ว

    I hope to continue to try more

  • @rashigupta5995
    @rashigupta5995 10 หลายเดือนก่อน

    This is so beautiful code am crying

  • @vigneshwarrv
    @vigneshwarrv 2 ปีที่แล้ว +1

    This is really great but the problem is ,the html attributes can be edited in the inspect section and we can override the pattern and thus allowing to send irrelevent data in the form..really its great brother