ReactJS Multi-Step Form Tutorial - React Hooks Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2024

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

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

    I just went through your code on a github, specifically on multi-step-form-react/src/components/Form.js. I must say its neat, precise and readable. Thanks a lot, this is really helpful.

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

    If you want to fetch the progress bar width dynamically meaning it will change based on the number of forms then use this formula in style:
    style={{ width: `${(100 / FormTitles.length) * (page + 1)}%` }}
    This will calculate the width based on the FormTitle length and page count

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

    Superb, you forced me to like this video because of your teaching style and stepwise action 👍👍👍

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

    man, i just wanted to thank you a million times. you are a genius. i hope you'll make tutorial on local storage soon bro.

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

    Nice job, is there any way you could make a video like this adding validation on each step?

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

    Insightful Video> You Explained It In Very Simple Way

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

    Como tu pode ter uma pronúncia tão boa????? Adorei o vídeo

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

    This was beginner friendly and absolutely fantastic.Thank you so much

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

    I think for the progress bar width, it's cleaner to write style={{width: `${page * n}%`}} where 'n' is equal to 100 divided by the amount of pages in your form. For example, my form has 13 pages, so 100 / 13 = 7.7 (round up to 8), so for me this will be style={{width: `${page * 8}%`}} (:

  • @kajolghoshkkg5512
    @kajolghoshkkg5512 3 ปีที่แล้ว

    WOW.... JUST WOW... THIS KIND OF CONTENT REALLY HELPS BEGINNERS LIKE ME A LOT... THANK YOU..

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

    For the page display function it may be better to consider a switch? Incredibly helpful though thank you

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

    Once I saw this video which is exactly what I needed.. I scrolled no further

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

    You're a genius king

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

    Thanks a lot it would be great if you tell how to validate fields when going from one step to another

  • @gabriel-xc8hp
    @gabriel-xc8hp 2 ปีที่แล้ว

    Just started in my first job last week and your video saved me a lot of time. Thank you so much!
    By the way, teu sotaque em inglês é quase nulo, parabéns pela evolução na língua também.

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

    It was a great tutorial although I have a question if we try to do a radio button instead of type="text" the values are not being saved as you click on next button. Can you show with an example of radio button ?

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

    this guy always helps me. thanks...

  • @f3-faithfitnessfinance
    @f3-faithfitnessfinance 3 ปีที่แล้ว

    So happy seeing you get to all the milestones❤

  • @Phoenix.superman
    @Phoenix.superman ปีที่แล้ว

    No one can explain better than this! 👍

  • @MrsBUtt-ui3on
    @MrsBUtt-ui3on ปีที่แล้ว

    Such A great teacher u made it too much easy or me🤩🥰

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

    Good video for begginers.what to do if one of the step have file upload,how are you going to deal with file upload

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

    So happy with this video! Thank you.

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

    Thank you Pedro. was really clear to understand multi step form logic :)

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

    Good stuff! The explanation is straightforward and I like It!

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

    DON PEDRO... love your tutorials

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

    you explain so good bro ! i'm so happy to find you.

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

    Thanks for sharing this video. It's helped me a lot with my official project.

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

    you saved my time brother, bravo

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

    Thank you, Pedro! Você está fazendo um bom trabalho :)

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

    Anybody else have an issue with the setPage function? It keeps going back to the default value of 0. I'm using Vite + React.

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

    ohhh boy ! NICE AND SIMPLE

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

    Thanks for this video its simple and informative.

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

    It's really great for posting data. But what about file upload like image ? Can you please suggest something in multi-step form like this one?

  • @aiknowledge-n2s
    @aiknowledge-n2s ปีที่แล้ว

    Nice explanation. Made life a bit easier.

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

    so nicely explained i love your teaching, omg thank you so muccchhhhh

  • @delmerj
    @delmerj 3 ปีที่แล้ว

    Hi, nice job with the videos, it is helping me so much with my learning curve. it is exacly what the marketing is expecting those days. One thing I am struggling, going back to the FULL stack videos, right now is an example on how to deal in the front end with Many To Many relationships, I could do the Sequelize part, and some calls, but I am struggling on making the calls on the front end. If you have an example using Many to Many ( on your videos you have 1 to many only ), it would be very nice to see. Thanks and keep up the good work!

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

    i like that man, very nice explaination, i will implement this for my react native app. Thank you soooo much

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

    Boa Pedrão, ajudou bastante meu amigo

  • @sydsalerno
    @sydsalerno 3 ปีที่แล้ว

    This video helped me so much! Thank you Pedro!!

  • @__peanut__butter28
    @__peanut__butter28 3 ปีที่แล้ว

    love this channel, you taught me a lot of knowledge i know today....

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

    very simple and easy, thanks

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

    Hmm, I might be doing something wrong here. I mean, I tried to follow ur instructions, which where awesome btw, but I can only type 1 letter at the time on the input field. Is that bcs it changes and re-renders? If so, how I can solve this?

  •  ปีที่แล้ว

    Muito bom o vídeo e serviu perfeitamente para o que eu estava precisando fazer :)

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

    Hi, how do we send the data of multi step form to the backend at once? Or like how to we handle the data of multi step form in the backend (Node.js)

  • @Ganesh-ld8ph
    @Ganesh-ld8ph 3 ปีที่แล้ว

    Hi Pedro, Really helpful video, and learned some logic.
    Learning a lot of stuff from your channel, thank you so much!

  • @enriquepenanieto9784
    @enriquepenanieto9784 3 ปีที่แล้ว

    Thanks for the tutorial... Could you make a video explaining how to add google auth in a node js - react app?

  • @onyekachigodswill8987
    @onyekachigodswill8987 3 ปีที่แล้ว

    Thanks man, how's can I add validation to it ?

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

    Also show how to add validations accordingly

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

    This is gold. Thank you.

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

    If I have a API I need on every click i want to pass the form data as payload can we do this ??

  • @Leo-es3fq
    @Leo-es3fq 3 ปีที่แล้ว

    How can i create multiple modal on react ? (Login modal, Register modal, Forgot password modal) For example: I opened login modal and click forgot password text then Forgot password modal is opening how can i do it?

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

    how can i handle and save data for radio and checkbox?

  •  ปีที่แล้ว

    Caso eu queira que a pessoa possa voltar ao formulário anterior voltando a pagina, eu teria que ter cada pagina em uma rota, certo? E como eu faria isso para esse código que vc explicou?
    Pois gostaria que em caso o usuário volte a pagina, ele n saia totalmente do formulário e perca o que já fez, apenas volte a etapa anterior.

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

    Wow this was great, thank you!

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

    Hi Pedro, just wanted to ask, if we declare PageDisplay as an array just like FormTitles. So, in body we can display the jsx just like the title depending on the index of the array

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

      Have you tried this. Would love to see how you did it

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

      @@defme6022 I just made an array were I had put the jsx's as elements just like the form title. So when the user clicks next or previous the jsx is rendered the same way as that of that form titles.

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

      @@ritankarbhattacharjee7661 aaah okay

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

    Beat job brother, i am damn i will be pro in react with your videos.

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

    Really , thank you so much for everything

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

    Need a help..... when clicking submit i want redirect to another page

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

    Hi, Pedro. Is it bad practice t call the pageDisplay function the way you did? I implemented this and someone argued that it was a wrong way.
    I'll appreciate your response or that of any one else.

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

    Very helpful so much, Thank you!!

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

    what'd happened if user refresh the browser in the middle of those steps ? will il be vanished ?

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

    Awesome tutorial thank you

  • @donmikkodanm.olmillo8154
    @donmikkodanm.olmillo8154 2 ปีที่แล้ว

    Can you also make multi-step form redux and react-hook-form? Thank you!

  • @AkashYadav-di6kd
    @AkashYadav-di6kd 2 หลายเดือนก่อน

    Thank you very much, sir.

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

    Thank you, Pedro

  • @gmartins-dev
    @gmartins-dev 2 ปีที่แล้ว

    "O desafio é criar um wizard, como se fosse um cadastro em um e-commerce onde a cada novo step você precisa salvar o anterior no caso dele querer voltar para revisar ou editar algo. "
    me pediram para fazer esse teste, to na duvida se é a ideia é +- a mesma coisa que vc ensina aqui ou nada a ver?

  • @hardwired66
    @hardwired66 3 ปีที่แล้ว

    we love this ❤️

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

    Great Tutorial!

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

    Thanks bro for this tutorial

  • @bobkazamakis5169
    @bobkazamakis5169 3 ปีที่แล้ว

    video about FieldArrays in multi-step forms plz ⭐⭐⭐⭐⭐

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

    how can we add validation to this logic ?

  • @hardwired66
    @hardwired66 3 ปีที่แล้ว

    need more react hook form yup content

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

    Really wonderful keep going forward.. would you make a video on cascading combobox three levels thus like company department devision like country states areas

  • @bluelion978
    @bluelion978 3 ปีที่แล้ว

    Amazing! Thanks a lot!!!

  • @celeritas_dev
    @celeritas_dev 3 ปีที่แล้ว

    What's your Vs Code theme ?

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

    Who told Pedro to add a direct link to his git respository? 😁😁😁

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

    you are the best !

  • @sundayokini6845
    @sundayokini6845 3 ปีที่แล้ว

    Thanks for this tutorial.

  • @GauravKumar-dw2ml
    @GauravKumar-dw2ml 2 ปีที่แล้ว

    what if i reload the page on any step ?

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

    What vs code theme is that ?

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

    how to make it online?

  • @Tkoraa
    @Tkoraa 3 ปีที่แล้ว

    please pedro we need a video about authentication in react with graphql 😢

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

      I have this video noted down, but it will take a bit of time to make since it is a long process. Im planning on making it after my universities midterm season hahaha Gotta pass my exams :/

    • @Tkoraa
      @Tkoraa 3 ปีที่แล้ว

      @@PedroTechnologies midterm 😂😂 oh so then take your time, i have the same suffering in my college and good luck in your exams 🙏💛

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

    Awesome awesome awesome

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

    Thanks dude 👏👏

  • @JaredBrown-c9t
    @JaredBrown-c9t ปีที่แล้ว

    Thank you so much

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

    I need give you more than one like 🎉

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

    in my form i need to post an image, anyone know how to do that with this method?

  • @Bobby-xi9pg
    @Bobby-xi9pg ปีที่แล้ว

    Thank you so muchhhh

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

    Thank You Pedro For this enjoyable tutorial 🤍

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

    Thank You bro

  • @VechTech
    @VechTech 3 ปีที่แล้ว

    Congrats!

  • @roshankurikkal9985
    @roshankurikkal9985 3 ปีที่แล้ว

    How would you add a date picker to this form

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

    Valeu demais!!!

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

    very good, thx.

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

    Thanks a lot :)

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

    good job

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

    thanks !!!!

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

    thanku sir for code

  • @velhoguidsd
    @velhoguidsd 3 ปีที่แล้ว

    Muito bom.

  • @lordvic4real
    @lordvic4real 3 ปีที่แล้ว

    Nice one