Build a Multi-Step Form in React Like a Pro

  Рет қаралды 13,526

Cosden Solutions

Cosden Solutions

Күн бұрын

Пікірлер: 40
@joshpraise1966
@joshpraise1966 7 күн бұрын
I had recently built a very large Onboarding Form weeks ago using RHF, Zod and Zustand. You just showed me an elegant way to share and persist the data across forms. Would be going back to refactor some part of my components. Keep up the good job! 🎉
@jsa247-l3e
@jsa247-l3e 3 сағат бұрын
I think it would be great to show the final result right at the beginning of the video! It really grabs attention and gets everyone excited!
@dexterjr2616
@dexterjr2616 5 күн бұрын
Perfect, I just need (I wish) few seconds in the beginning for explanation of the whole setup. As at the end the puzzle is completed and kind of obvious. Kudos for explaining when AI is helping for boilerplate code. looking forward for the next video
@luznoceda423
@luznoceda423 8 күн бұрын
There's no way my man upload a new tutorial in the first night of Lunar New Year 😭 Not the🧧I expected but needed
@minhnguyenvan7352
@minhnguyenvan7352 8 күн бұрын
I stucked at this problem because I did know "How can i optimize it". Suddenly, i saw this video when I had been relaxed on KZbin. It's very helpful. Thank you very much 🎉
@jason.zubiate
@jason.zubiate 2 күн бұрын
Thanks for putting me on to zustand.
@tannertanner1
@tannertanner1 6 күн бұрын
hydration part at the end is cool
@Ferno2k
@Ferno2k 8 күн бұрын
What about single page multi tab form is there any tip you can give for that?
@elpeeda42
@elpeeda42 8 күн бұрын
Could you please also do multi forms in react hook form? I've always struggled to find the correct solution while using it with backend data
@FalkvonZydowitz
@FalkvonZydowitz 8 күн бұрын
Great work! I like your videos very much. Even though I'm not the biggest fan of AI tools and projects that consists more or less from 3rd party dependencies, it's a great example what's possible if one masters his tools.
@lesuuh
@lesuuh 8 күн бұрын
Right on time... Was currently looking to build a multi step form
@jessiepinkemen
@jessiepinkemen 8 күн бұрын
Need more of these 🔥
@navexor
@navexor 8 күн бұрын
Thank you very much for the great video. Have a small question left. If we have a form with 10 steps and 100 fields, some of which are optional, does that mean that at each of the nine steps we need to validate all the previous (required only) fields from the previous steps (field1 & field2 & etc.) in useEffect? Is there any way to optimize this? Maybe use zod or smthng?
@yuridukhanin19
@yuridukhanin19 8 күн бұрын
The most problems with nested array with array, dynamic fields, context with custom resolver, complex custom validation with throwing errors as result + super intresting, but rather hard to implement this with server error
@ksubramanyeshwara
@ksubramanyeshwara 8 күн бұрын
Looking forward to more High quality videos Thank you
@kuysjess7821
@kuysjess7821 8 күн бұрын
thank you for the idea
@전인표-c4m
@전인표-c4m 8 күн бұрын
Thanks, that's what I want😎
@VictorScript
@VictorScript 8 күн бұрын
My man ❤
@AqibRime
@AqibRime 8 күн бұрын
Very good video
@ptolemyhenson6838
@ptolemyhenson6838 8 күн бұрын
I don't like how Cursor seems to do not just code insertion like Copilot, but also active modification of what's already there across multiple lines. It makes autocomplete more confusing.
@cosdensolutions
@cosdensolutions 8 күн бұрын
I totally understand. I also felt like that at first, but you do get used to it!
@tudy2006
@tudy2006 4 күн бұрын
Why not just use a context with a form and push to it from each step component? I feel liké its easier than création 3 separate forms and using a store
@rahulray3432
@rahulray3432 8 күн бұрын
Love from Nepal. I have a small request, can you make a video on the user registration, email verification, and login flow in React and context api to store user details after login.
@hazemkhaled9416
@hazemkhaled9416 8 күн бұрын
But I believe with this implementation you can't go back to prev steps or you can but you will have to fill the form step as till now it is not prefilling the data to the form, am I right?
@Jorshan29
@Jorshan29 6 күн бұрын
what about using react form t implement the same thing without a store !
@_andrewpeacock
@_andrewpeacock 8 күн бұрын
You are BY FAR my favorite React teacher. I go to your channel EVERY SINGLE TIME. Often before hitting LLMs 👀
@HamidehSheikh-e3s
@HamidehSheikh-e3s 7 күн бұрын
That was great😍🥹
@jonivainio-kaila3713
@jonivainio-kaila3713 8 күн бұрын
The data could be stored also to the url search params
@tomaszp2580
@tomaszp2580 8 күн бұрын
password can be?
@jonivainio-kaila3713
@jonivainio-kaila3713 8 күн бұрын
@tomaszp2580 well, the local storage is not either a safe place to store a password 😄
@jonivainio-kaila3713
@jonivainio-kaila3713 8 күн бұрын
@@tomaszp2580 having a password in a multistep form is not the best one as an example. Passwords shouldn't be stored in a state at all
@tomaszp2580
@tomaszp2580 8 күн бұрын
@@jonivainio-kaila3713 Yes. But search params is something what all can see, about localstorage most of users dont know. But for sure it shoudnt be store even encrypted and write by user everytime he are in form again(or pass put call every form step to backend).
@cosdensolutions
@cosdensolutions 8 күн бұрын
Yes, you would just need an extra layer to have type safety
@eluferedonatus2096
@eluferedonatus2096 7 күн бұрын
Hello cosden, the project react url is not working
@kamildwyer6012
@kamildwyer6012 14 сағат бұрын
Is it not some sort of security issue? 1) Once the password is submitted its still visible in local storage in plain text, 2) There is password, first name and last name validation however in last page we can change it in local storage without any validation, reload the page and send the data without any validations? Great video but i guess not very suitable for onboarding flow.
@shakilahmed6870
@shakilahmed6870 6 күн бұрын
before creating something in a longer video, first of all show use what are we going to make then jump into the code.
@pankaj-kumar-yadav-67
@pankaj-kumar-yadav-67 8 күн бұрын
Vs code theme name?
@leonard3468
@leonard3468 8 күн бұрын
Hi, can you explain to me why you always have your cursor on "insert" the whole time? Is there a specific reason or is it just a habit?
Solving a React Technical Challenge Like a Pro
14:50
Cosden Solutions
Рет қаралды 12 М.
The Most Important Rule for Clean Code in React
16:52
Cosden Solutions
Рет қаралды 33 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
I'm Finally Moving On (I have a new browser)
27:51
Theo - t3․gg
Рет қаралды 169 М.
Forms with React 19 and Next.js
9:13
leerob
Рет қаралды 43 М.
Why is every React site so slow?
13:52
Theo - t3․gg
Рет қаралды 161 М.
This tool annoyed me (so I built a free version)
19:38
Theo - t3․gg
Рет қаралды 259 М.
The Biggest Mistake Intermediate React Developers Make
18:32
Cosden Solutions
Рет қаралды 54 М.
The Man Behind DeepSeek (Liang Wenfeng)
18:03
East Money
Рет қаралды 341 М.
I Fixed Stripe
28:30
Theo - t3․gg
Рет қаралды 64 М.
Become a Master at Reusable Components in React
19:51
Cosden Solutions
Рет қаралды 28 М.
You're Not Behind: Become AI-Native in 2025
10:11
Jeff Su
Рет қаралды 446 М.