The Ultimate Guide To Forms In React Tutorial

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 96

  • @anno96
    @anno96 Рік тому +21

    Hello Ed, can u please make a project with NextJs 13? I want to see how would you approach it after the new features that were added to NextJs. And thanks for this amazing video ❤️

  • @kove5762
    @kove5762 Рік тому +1

    This was super helpful :D The formik documentation is clear too, but i prefer when this is explained in video

  • @yahayaoyinkansola8258
    @yahayaoyinkansola8258 6 місяців тому

    Thank you Ed for this tutorial!, I was saying to myself that I wanted to learn how to build forms in React from scratch (Which I would still learn for basic knowledge), but for doing a Job fast, using formik and yup is extremely helpful, thanks for also showing a small example of how to use framer motion and the useRouter hook in NextJS. This was really an insightful video

  • @CarlosAponte-lm5le
    @CarlosAponte-lm5le Рік тому +4

    I tried following your tutorial but it was really complicated to have the css colors work!
    The tutorial is just amazing but unfortunately that tailwind config was a bit complicated and many of the color animations, to not say all of them were impossible to follow until now.
    I will continue learning from you, of course but if you may have thought about it, maybe you could have a video of common issues that happen to people since I saw online this happens to many of us.
    Thanks much dude!

  • @morscerta18
    @morscerta18 2 місяці тому

    Never thought I'd learn Forms in React from Floki. Thanks!

  • @chrisstucker1813
    @chrisstucker1813 9 місяців тому

    So use Formik with Yup for small forms or use react-hook-forms and Zod for bigger more complex forms since react-hook-forms minimises the amount of re-renders when interacting with the form for better performance :-)

  • @junog5552
    @junog5552 Рік тому +1

    Ed, amazing tut. Exactly what I was looking for as a beginner. Much love!

  • @ankushanand
    @ankushanand Рік тому

    Hey Ed, What extensions are you rocking. Please share or maybe you have a video for it

  • @vladislaviy
    @vladislaviy 8 місяців тому

    Maaaan such a nice vibe from you)) thanks for the mood and knowledge sharing!!!!

  • @blacklight8318
    @blacklight8318 Рік тому +3

    you can use
    yarn create next-app --example with-tailwindcss
    this will do all of your work
    eith tailwind setup

  • @thegreatkizo
    @thegreatkizo Рік тому

    Thank you for the tutorial, it was really amazing. As someone just starting React, I really do appreciate this. Massive props!

  • @manuelgoncalves4026
    @manuelgoncalves4026 Рік тому +1

    Hey. I am confused. The UI & UX is great but the form data is not really getting submitted anywhere.
    The user data is getting saved yes but NOT sent to any email address (recipient) of our choice.
    How to do that part?

    • @somerandomdude-UWU
      @somerandomdude-UWU 7 місяців тому +1

      There are separate libraries for doing so. If you are building a contact form where the users can contact you, services like web3forms and formspree come in handy (both are free). On the other hand, if you want to send an email to someone using this, there are libraries such as Nodemailer that can be used to do so. [SORRY FOR BEING 6 MONTHS LATE💀]

  • @bonfacenjuguna214
    @bonfacenjuguna214 Рік тому +4

    thanks Ed, would you kindly do a Redux-toolkit with RTK-query tutorial.Thank again.

  • @dev_franqqi
    @dev_franqqi Рік тому +1

    Anytime I think about you...BOOM you post😁... loving the consistency

  • @alifyout
    @alifyout Рік тому

    You don't know Ed what good you are doing to our whole web developer brethren. Bless You.

  • @oladapotaiwo3383
    @oladapotaiwo3383 Рік тому

    How do i use formik submit after validation to go to the next page? If i use NavLink it would go through but ignore all form validation. Though I used npx create react app. Curious

  • @JoaoPedro-kp7zd
    @JoaoPedro-kp7zd Рік тому

    Hello! I'm using Vite instead of Next js, I'm looking for something similar to the next js push, do you guys suggest anything to validate the form and send the information in the same button?

  • @elhaambasheerch7058
    @elhaambasheerch7058 Рік тому

    All these cool libs make me feel that we're in the golden era of coding, yes we need to get familiar with a lot of stuff but it does make our life ridiculously easier.

  • @sibamuns
    @sibamuns Рік тому

    What if the dropdown was using fetched data from an api, instead of a hardcoded json object? How would I pass that data from the api into my dropdown using formik?

  • @mohaiminulislamshishir9361
    @mohaiminulislamshishir9361 Рік тому

    How did you add the emoji after the Let's get started heading ??

  • @Davyyd1
    @Davyyd1 Рік тому +1

    so what's front-end developer job? not only designing pages? should also do "validations" on forms? that is not back end's job?

    • @Mwtorres89
      @Mwtorres89 Рік тому

      well... yes, Front end also involves JavaScript which is a little more complicated than CSS and HTML.

    • @Davyyd1
      @Davyyd1 Рік тому

      @@Mwtorres89 where i can Find what front end dev do?

    • @Mwtorres89
      @Mwtorres89 Рік тому

      @@Davyyd1 front end mentor

  • @johnurena2863
    @johnurena2863 Рік тому

    Hi! Great tutorial!
    Which extension do you use?

  • @nikkoazz
    @nikkoazz Рік тому

    Hmmmm, I'm a noob, learning react and tailwind atm. Can i use this tutorial or are there next.js specific things in here?

  • @prathamshenoy9840
    @prathamshenoy9840 Рік тому +3

    You resemble the guy from CameraConspiracies a lot

  • @philipjamesajagabos2519
    @philipjamesajagabos2519 Рік тому

    A great guide for me as a starter in react. Thanks , subscribing to your channel with much ❤

  • @BugMotoChannel
    @BugMotoChannel Рік тому

    This tutorial was so thoroughly satisfying. Thank you!

  • @mochamadhadyonosandi2085
    @mochamadhadyonosandi2085 Рік тому

    Hello Ed, may i know what font do you use?

  • @ChArham-bs1ne
    @ChArham-bs1ne Рік тому

    Formik and Yup are cool and whatever, but I was looking for a vanilla JS tutorial on forms. Great tutorial nevertheless my friend. Thanks.

  • @Charlotte-jm3ce
    @Charlotte-jm3ce Рік тому

    Thank you for including accessibility 🙏

  • @davique0
    @davique0 Рік тому

    You are a legend, thanks for this great content, just a quick question, how could you send the information collected by the form to send to my prisma backend to save that data?

  • @misael5179
    @misael5179 Рік тому

    This tutorial is Amazing! I love formik!

  • @FrancisFuwaku-m8t
    @FrancisFuwaku-m8t Рік тому

    please what is the emoji plugin you used.. thank you

  • @AoseiOK
    @AoseiOK Рік тому

    Good evening, I have an error in the code focus:border-teal-500 focus:ring-teal-500 is not getting the focus with the color correctly. The border is obtained but not the focus. What could it be...?

  • @plussminuss
    @plussminuss Рік тому

    Hello bro! I have a problem please help when I import useRouter from next/router shows blank page white screen in console says Uncaught ReferenceError: process is has-base-path.ts:3 not defined

    • @plussminuss
      @plussminuss Рік тому

      Helluuo

    • @jasmimounna
      @jasmimounna Рік тому

      me too, please if it worked for you let me know how to fix it

  • @cyberducc
    @cyberducc Рік тому

    38:15 Instead of writing a tertiary operator, a ? a : b can be written as a || b. And a ? b : "" can be written as a && b.

  • @haiderimam8977
    @haiderimam8977 Рік тому

    I hope your health is fine. Bless you brother.

  • @AndrewTSq
    @AndrewTSq Рік тому +4

    Formvalidation is supereasy in plain HTML actually. Use the pattern-tag, like pattern="[a-z]{1,15}" (normal regex) and then you just make a HTMLSelectElement.checkValidity() . And checkValidity() also checks for min and maxlength etc ofcourse. And thanks to css you can make the fields not meeting the critiera have a red border automaticly without a single of extra code. (yes I hate frameworks and libraries :D

    • @loogie5679
      @loogie5679 Рік тому

      i think the main issue with doing it with plain html is that anyone with little programming knowledge could easily inspect the website and edit the html code

    • @philipjamesajagabos2519
      @philipjamesajagabos2519 Рік тому +1

      @@loogie5679 Exactly my thoughts. A complete validation should be both at the client and server side.

    • @kinstar
      @kinstar Рік тому

      @@loogie5679 its definitely easier that way but quite hacky, forms and validation are a pain in general

    • @oscare123
      @oscare123 11 місяців тому

      Hell no

    • @AndrewTSq
      @AndrewTSq 11 місяців тому

      @@philipjamesajagabos2519 yes agree that it should be on server side aswell. But funny thing is that when I check code I often see people use jquery for form validation on clientside.

  • @EricOnYouTube
    @EricOnYouTube Рік тому

    How would this work in Next 13? Thanks.

  • @indrasen9617
    @indrasen9617 Рік тому

    Thanks for making react easy for us.

  • @paulthomas1052
    @paulthomas1052 Рік тому

    Another great tutorial. Thanks so much !

  • @TheAshokWB
    @TheAshokWB Рік тому +12

    I'm gorgeous today

  • @MarlonEnglemam
    @MarlonEnglemam Рік тому

    great video. I prefer react-hook-form though

  • @soltiscd
    @soltiscd Рік тому

    Would you cover react-forms on the tanstack?

  • @lucassantos7623
    @lucassantos7623 10 місяців тому

    Thank you for the tutorial.

  • @Siderite
    @Siderite Рік тому +1

    So first you use good design principles and you get rid of all that style="margin:10px; color: black;" and then use a good CSS framework like Tailwind, using modern stuff like class="margin10px colorBlack". Is that how it works? :D

  • @thegauravsoni
    @thegauravsoni Рік тому +1

    make a tutorial on api integration and backend intraction

  • @newtojillo
    @newtojillo Рік тому

    I've saved it to my playlist I'll visit it

  • @emmanuelsheshi961
    @emmanuelsheshi961 Рік тому

    you are so calm

  • @belkocik
    @belkocik Рік тому

    Very helpful video!

  • @EricOnYouTube
    @EricOnYouTube Рік тому

    Oh, also, can you do a drag and drop in Next 13? Thanks.

  • @blue_berry_pie64
    @blue_berry_pie64 Рік тому

    Thanks Ed, that is what I need 😊

  • @reflectivereveriemingle
    @reflectivereveriemingle Рік тому

    Thanks Ed you rock

  • @thatsharepointdev
    @thatsharepointdev Рік тому

    Really helpful !

  • @CarlWicker
    @CarlWicker Рік тому

    Cheers Ed, you da man!

  • @thegauravsoni
    @thegauravsoni Рік тому

    Thanks sir, Thanks from india :)

  • @TobyWild
    @TobyWild Рік тому

    30 minutes I was going insane because the Country field had the label of Email.....

  • @shivaansh98
    @shivaansh98 Рік тому

    Initial 24 mins is HTML-CSS, skip to 24 for react.

  • @adamdurrant
    @adamdurrant Рік тому

    Why does this project need Next?

  • @VindexTOS
    @VindexTOS Рік тому

    27:46 useForm

  • @koladechris
    @koladechris Рік тому

    This is incredible! I had a lesson to learn from everything you did.
    Thank you.

  • @simisanoo5382
    @simisanoo5382 Рік тому

    So wait, it's next not react?

  • @_tanzil_
    @_tanzil_ 11 місяців тому

    Great

  • @cristianespinoza1438
    @cristianespinoza1438 Рік тому

    is it a react forms tutorial or a css tutorial? :/

  • @darrenchen8912
    @darrenchen8912 Рік тому

    nice tut but the Tailwind css config often didn't work,

  • @zuber696
    @zuber696 Рік тому

    u said react but u used next js , i had to change the video , sorry u disapointed

  • @Elderny
    @Elderny Рік тому

    like your content :)

  • @javeriazaheer6970
    @javeriazaheer6970 Рік тому

    8:40

  • @adamjamiu6764
    @adamjamiu6764 Рік тому

    "let go to the tutorial" 🤔

  • @ДаниилСоболев-щ4щ

    formik is slow actually
    react-hook-form is faster and more popular

  • @beconfident5482
    @beconfident5482 Рік тому

    Finally first comment 😂

  • @aligu7
    @aligu7 Рік тому

    First 😊

  • @Zagoorland
    @Zagoorland Рік тому

    Bruh, start using typescript. Javascript is pretty much dead nowadays.

  • @sdmit2000
    @sdmit2000 Рік тому

    why introduce so many dependencies to your projects? you can code it easily with vanilla react/js/ts

  • @Pareshbpatel
    @Pareshbpatel Рік тому

    {2023-03-05}

  • @mariomacari4637
    @mariomacari4637 Рік тому

    Hi Ed, I purchased your HTML course and I am enjoying it, but I wanted to let you know this link: drive.google.com/drive/folders/15uNyS0zwm3L_sjqX-WUiFdFCVDBet3PI?usp=sharing is broken. It's under the Full Course Download I hope you fix it soon. Thanks,

  • @prasankumar4306
    @prasankumar4306 Рік тому

    Great