ReactJS Multi-Step Form Tutorial - React Hooks Tutorial

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • Code: github.com/mac...
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/mac...
    Email: machadop1407@gmail.com
    Tags:
    ReactJS Tutorial
    ReactJS and MySQL
    NodeJS Tutorial
    API Tutorial
    #reactjs #coding
  • НаукаНаука

Комментарии • 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 👍👍👍

  • @conorkelly5112
    @conorkelly5112 2 года назад +10

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

  • @gustavocampos1366
    @gustavocampos1366 2 года назад +6

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

  • @adiemar3974
    @adiemar3974 2 года назад +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.

  • @Fatimah12345
    @Fatimah12345 6 месяцев назад

    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 2 года назад

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

  • @wasiuddinmansoori3385
    @wasiuddinmansoori3385 Год назад +1

    Insightful Video> You Explained It In Very Simple Way

  • @KSHMRGAMING
    @KSHMRGAMING 2 года назад +1

    this guy always helps me. thanks...

  • @alimamedov9684
    @alimamedov9684 2 года назад +1

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

  • @f3-faithfitnessfinance
    @f3-faithfitnessfinance 2 года назад

    So happy seeing you get to all the milestones❤

  • @corrupt1921
    @corrupt1921 2 года назад +1

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

  • @melissatermin5551
    @melissatermin5551 2 года назад +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 ?

  • @idevbrandon
    @idevbrandon Год назад

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

  • @delmerj
    @delmerj 2 года назад

    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!

  • @elavarasan7994
    @elavarasan7994 Год назад

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

  • @Reminiscer0
    @Reminiscer0 Год назад

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

  • @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.

  • @earxe7712
    @earxe7712 2 года назад +1

    So happy with this video! Thank you.

  • @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.

  •  Год назад

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

  • @alfredgithinji3166
    @alfredgithinji3166 Год назад

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

  • @MrsBUtt-ui3on
    @MrsBUtt-ui3on Год назад

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

  • @abhilashpoojary3812
    @abhilashpoojary3812 2 года назад +1

    Thanks for this video its simple and informative.

  • @Ganesh-ld8ph
    @Ganesh-ld8ph 2 года назад

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

  • @richthekid7522
    @richthekid7522 Год назад +1

    You're a genius king

  • @sydsalerno
    @sydsalerno 2 года назад

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

  • @__peanut__butter28
    @__peanut__butter28 2 года назад

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

  • @abdallasuliman8165
    @abdallasuliman8165 Год назад

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

  • @davidosimiri7344
    @davidosimiri7344 Год назад

    DON PEDRO... love your tutorials

  • @haiderjaafer8164
    @haiderjaafer8164 2 года назад +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

  • @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.

  • @wassup102
    @wassup102 Год назад

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

  • @rebeccaignacio7497
    @rebeccaignacio7497 2 года назад

    Boa Pedrão, ajudou bastante meu amigo

  • @eyilachewlema3130
    @eyilachewlema3130 Год назад

    you saved my time brother, bravo

  • @Phoenix.superman
    @Phoenix.superman Год назад

    No one can explain better than this! 👍

  • @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

  • @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?

  • @enriquepenanieto9784
    @enriquepenanieto9784 2 года назад

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

  • @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.

  • @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

  • @rasul3d
    @rasul3d Год назад

    very simple and easy, thanks

  • @nikhilrizal3729
    @nikhilrizal3729 Год назад

    ohhh boy ! NICE AND SIMPLE

  • @rizaradiarivaldo
    @rizaradiarivaldo 2 года назад +1

    Very helpful so much, Thank you!!

  • @davidgallego1216
    @davidgallego1216 2 года назад

    This is gold. Thank you.

  • @nehat786
    @nehat786 2 года назад

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

  • @apurv5847
    @apurv5847 11 месяцев назад

    Also show how to add validations accordingly

  • @ericaguadalupe7862
    @ericaguadalupe7862 Год назад

    Wow this was great, thank you!

  • @donmikkodanm.olmillo8154
    @donmikkodanm.olmillo8154 2 года назад

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

  • @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)

  • @calvinwilliams729
    @calvinwilliams729 Год назад

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

  • @marwa_als
    @marwa_als Год назад

    Really , thank you so much for everything

  • @Leo-es3fq
    @Leo-es3fq 2 года назад

    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?

  • @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?

  • @sonamohialdin3376
    @sonamohialdin3376 2 года назад

    Awesome tutorial thank you

  • @onyekachigodswill8987
    @onyekachigodswill8987 2 года назад

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

  •  Год назад

    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.

  • @odiriighogboja563
    @odiriighogboja563 Год назад

    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.

  • @wagolemusa3070
    @wagolemusa3070 2 года назад

    Thanks bro for this tutorial

  • @elsayedtorky5776
    @elsayedtorky5776 2 года назад

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

  • @AkashYadav-di6kd
    @AkashYadav-di6kd 16 дней назад

    Thank you very much, sir.

  • @chougranior6052
    @chougranior6052 2 года назад

    Thank you, Pedro

  • @prajyotmore3685
    @prajyotmore3685 7 месяцев назад

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

  • @sreeharitp8666
    @sreeharitp8666 Год назад

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

  • @qorzzz9252
    @qorzzz9252 2 года назад +3

    This isn't really a multi-step form as much as it is simply parent state segmented to different child components.
    I'd recommend you at the very least use an actual form element, have some basic input validation, and submit handler(s).

  • @bluelion978
    @bluelion978 2 года назад

    Amazing! Thanks a lot!!!

  • @Tkoraa
    @Tkoraa 2 года назад

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

    • @PedroTechnologies
      @PedroTechnologies  2 года назад +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 2 года назад

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

  • @negociosdigitales7040
    @negociosdigitales7040 2 года назад

    Great Tutorial!

  • @lalagisaa
    @lalagisaa 5 месяцев назад

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

  • @celeritas_dev
    @celeritas_dev 2 года назад

    What's your Vs Code theme ?

  • @tis7862
    @tis7862 2 года назад

    how can we add validation to this logic ?

  • @bobkazamakis5169
    @bobkazamakis5169 2 года назад

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

  • @hardwired66
    @hardwired66 2 года назад

    we love this ❤️

  • @GauravKumar-dw2ml
    @GauravKumar-dw2ml 2 года назад

    what if i reload the page on any step ?

  • @Bobby-xi9pg
    @Bobby-xi9pg Год назад

    Thank you so muchhhh

  • @sundayokini6845
    @sundayokini6845 2 года назад

    Thanks for this tutorial.

  • @JaredBrown-c9t
    @JaredBrown-c9t Год назад

    Thank you so much

  • @hardwired66
    @hardwired66 2 года назад

    need more react hook form yup content

  • @HewerthVengeance
    @HewerthVengeance 2 года назад

    Thanks dude 👏👏

  • @ranjanbastia9706
    @ranjanbastia9706 7 месяцев назад

    Thank You bro

  • @duvandanielespitiamunoz9854
    @duvandanielespitiamunoz9854 Год назад

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

  • @mohammedaladi2996
    @mohammedaladi2996 2 года назад

    you are the best !

  • @uliahshafar8599
    @uliahshafar8599 2 года назад

    how to make it online?

  • @pawankalyan9105
    @pawankalyan9105 Год назад

    What vs code theme is that ?

  • @henriquekramer_
    @henriquekramer_ 2 года назад

    Valeu demais!!!

  • @scibuff
    @scibuff Год назад

    why are you building this from scratch when there are components such as mui stepper and libraries such as formik ...

  • @roshankurikkal9985
    @roshankurikkal9985 2 года назад

    How would you add a date picker to this form

  • @patrykkuniczak2516
    @patrykkuniczak2516 2 года назад

    Thanks a lot :)

  • @anishsuman1371
    @anishsuman1371 2 года назад

    Awesome awesome awesome

  • @marwa_als
    @marwa_als Год назад

    I need give you more than one like 🎉

  • @fastlearner9993
    @fastlearner9993 2 года назад

    thanks !!!!

  • @hbela1000
    @hbela1000 2 года назад

    very good, thx.

  • @VechTech
    @VechTech 2 года назад

    Congrats!

  • @shwetasrivastava3495
    @shwetasrivastava3495 2 года назад

    good job

  • @velhoguidsd
    @velhoguidsd 2 года назад

    Muito bom.

  • @karanbisht7814
    @karanbisht7814 2 года назад

    thanku sir for code