Danke! Wow 😲 this is exactly what I was looking for today. Destiny 😄
@coderyan2 жыл бұрын
Love it when a tutorial just comes out at the right time to solve a problem
@WebDevSimplified2 жыл бұрын
Glad I could help!
@SeanCassiere2 жыл бұрын
The fact that you are making React tutorials using Vite and Typescript is mega awesome 👍🏼👍🏼👍🏼. Big up to you man.
@arshiagholami761110 ай бұрын
nothing beats good ol' JS. typescript is for the weaks (writing this comment while waiting for intellisense finish loading)
@PrincessStache2 жыл бұрын
Thank you so much! Typescript tutorials are so needed. I really appreciate how you go through each step and keep going back to get the needed functionality.
@WatchMeLearnIt2 жыл бұрын
Great video! Would LOVE to see a part 2 of this where you implement some kind of fetch request like you talked about at the end!
@niklassoderberg21682 жыл бұрын
This one was hard, but im learning typeScript so.. One of your best videos and I watch close to all of them!
@muhayminkhan70632 жыл бұрын
Today i've learned a best way to do some things thanks to you (1) React-simple-search-filter (form your other video) (2) Multistep-form-React-Typescript (This is the Brilliant way I guess ) ❤❤
@kingsleyovo88892 жыл бұрын
Nice videos as always I have found that kyle slowly transform the language from js to ts…. Ts should be the greatest adapter for learning Java and js
@EvertJunior2 жыл бұрын
Great video. I usually work with a react-hook-form library and this video gave me some insights on how it probably work under the hood.
@developer_hadi2 жыл бұрын
Bro thank you so much this is very simple and easy, please keep sharing things like this in react and typescript because it really makes my life easier as a beginner in react
@coderyan2 жыл бұрын
Good luck with your journey with learning React!
@developer_hadi2 жыл бұрын
@@coderyan thanks
@oxynetz2 жыл бұрын
Enjoyed this format quick fast under 30mins, packed with useful tips and content. Well worth it. Thanks man
@andresvodopivec59506 ай бұрын
Great video. You solved a problem I had in 28 min. Appreciated for focussing more on the react part, instead of the styling part. Makes it easy to follow the video. I decided to sibscribe to your channel after this. Great content. Thanks
@FalioV2 жыл бұрын
Awesome tutorial dude! I dont know why took me so long, but now I'm subscribed!
@darkNovaskar Жыл бұрын
Gotta say thank you for having a clear easy to understand voice. All these KZbinrs got thick azz accents and this coding shit is hard enough 😤
@elelan2 жыл бұрын
This is what I've been searching everyday for past few months...! React with Typescript and Vite
@chinmoykr2 жыл бұрын
When vite ask you for project name type "." then it will create your project in current directory. no need to move your files
@nabinsaud46882 жыл бұрын
He know bro .but he want to make beginner friendly
@chinmoykr2 жыл бұрын
Ohh nice.. Maybe it will help someone.. not him but someone...
@nabinsaud46882 жыл бұрын
@@chinmoykr yes Lets meet bro show your github link
@TheZayzoo2 жыл бұрын
I didn't know, thanks for the free information.
@guestofallah76612 жыл бұрын
@@nabinsaud4688 so the comment need some expert to understand it ?
@anand_dudi7 ай бұрын
We need more this type of tutorial to solve problems in real world application. thanks kyle
@olexandrperlov6426 Жыл бұрын
this type of multi step form is so clean and ease that I can't be happier and I will definitely use it in my project. Thank you so much
@mountaingoatgaminggg9395 Жыл бұрын
Loved this tutorial, used a lot of the concepts here in my irl project I am working on, now just gotta learn how to intergrate a signature pad and how to save that and Im golden! Good Stuff
@bravo1oh12 жыл бұрын
I literally am needing this right now
@clarkdnro2 жыл бұрын
What a beautiful Form you created. Wow, very beautiful
@kelvink969 ай бұрын
I have been looking for such a tutorial. Thanks so much for this 👍👍
@kartik77752 жыл бұрын
No matter how great a job I land in future, I'll always be grateful for your lessons and will dedicate my success to you. 🙌
@whatsapp1762 жыл бұрын
Helpline 📲📩⬆️ Questions can come in⬆️
@kunfun19162 жыл бұрын
Nice tutorial! I rewrote this in solid-js. Learn a lot.
@philipjamesajagabos25192 жыл бұрын
A second video from you that gives me good head-ups to understanding react. Thanks for the good content.
@milendonchev7372 жыл бұрын
Great video as always my friend! Quick tip (you probably know, but anyway) - When you create a Vite app, which you want to be in your CWD, when it asks you for name of project, just type a dot (".") and it will create the project in there. :)
@coderyan2 жыл бұрын
Nice tip! Something I can use in future projects.. pretty new to Vite
@fabianpetersen2452Ай бұрын
I did this the other day with another tutorial because i wanted to learn how to do this. Boy was it a royal complicated mess. The logic was hard to follow, i used custom hooks like you did otherwise theres so much code you get dizzy if there's many fields per form 😂😂😂. This was simple aka your name and easy to follow if you need to reuse this months later..thanks bud
@marvelBoy19092 жыл бұрын
Need more of these react typesrcipt vite projects 🔥 👍
@gyros9162 Жыл бұрын
Thank you so much! I've used your approach in my student project and mentioned you in github )
@gray_hat2 жыл бұрын
There is also a ReactPropsWithChildren interface your props could extend. That automatically adds a children field to your props
@piyushaggarwal52072 жыл бұрын
It is PropsWithChildren actually. Thanks!
@piyushaggarwal52072 жыл бұрын
There is one problem though what if we want the children to be required. It is optional in the type you mentioned.
@gray_hat2 жыл бұрын
The type for children is ReactNode If children is required by your usecase then you can potentially add `children: ReactNode` without using PropsWithChildren. Although for such use cases you probably have a specific type you might wanna use for children and not the generic one. So you can do that too.
@uome2k79 ай бұрын
@@piyushaggarwal5207 you can use the Require util type to set fields of a type to be required.
@martinkoller35952 жыл бұрын
Great tutorial! I Appreaciate that a lot.
@TheFirstUserHandle Жыл бұрын
Great tutorial. Love your stuff. This helped me out significantly.
@EricShans2 жыл бұрын
Great video, took a bit but I fully understand it !
@pmioduszewski2 жыл бұрын
One day this video will save your day
@kanishka59482 жыл бұрын
Just what I needed 😌
@fipabrate Жыл бұрын
This helped me a lot. Thank you!
@simplyabdou84252 жыл бұрын
great video Kyle
@yevhenlysenko74442 жыл бұрын
More similar lessons with TS are needed)
@baolee4622 Жыл бұрын
Amazing explanation!
@kathirmldata74112 жыл бұрын
Happy Aayutha Pooja 🥰
@beinerthchitivamachado98922 жыл бұрын
Kyle, you're the GOAT!
@joaoarthurbandeira Жыл бұрын
Hey Kyle, - How can i implement this in combination with Zod, for example? - Also, how could i modify the code if i want to use Redux toolkit for this? - And how can i implement the 'goTo' part so i can quickly jump to a specific part of the form? - Finallly, Will the state be preserved even if the user refreshes the page or - in a system - log out and log in again? Lots of questions haha, but thanks anyway!
@focusroom_ Жыл бұрын
Amazing as always
@piyushaggarwal52072 жыл бұрын
Loved the tutorial
@plamenpetkov7462 жыл бұрын
What's the alternative for steps: ReactElement[] from the custom hook in ReactJS, cuz I don't know TypeScript?
@blogpegaaki2 жыл бұрын
Amazing friend!
@tomasburian65506 ай бұрын
Strange that I'm getting TS errors when I try to write the same code, but otherwise this was a great lesson. I'm trying to implement it into Next.js right now so this was a good starting point for me. With Next js it gets more complicated because of SSR and the use of hooks and translations but it can be done.
@kinamartinez Жыл бұрын
Thank you very much, its an amazing video, very useful
@khurshedaalam7478 Жыл бұрын
Awesome bro love from india
@mohammadkhakhsoor20686 ай бұрын
thanks , wish it had other types of inputs and also validation please create one with more detail , like when in one of the steps there are 3 itmes to choose between one of them and only one of them should be selected and go to the next form
@rosmildolopes39856 ай бұрын
could you do any validations?
@UnderstandingCode2 жыл бұрын
1m subs congrats
@paulthomas10522 жыл бұрын
Great video. Thanks.
@אילהוייס Жыл бұрын
Thank you very much it helped me a lot☺
@Mutoforma2 жыл бұрын
Awesome! Around 26:30, how were you highlighting both instances of 'email' in the value/onChange props?
@ongangminh66272 жыл бұрын
Ctrl + D, bro
@whatsapp1762 жыл бұрын
Helpline 📲📩⬆️ Questions can come in⬆️
@eliamzg2 жыл бұрын
This would have been great 2 years ago before I had to come up with my own as a junior react dev
@GMPGIRI2 жыл бұрын
Please more React + Typescript projects. 🙏
@benny-shen2 жыл бұрын
Great content
@artemryabykh10 ай бұрын
Thank you for the guide! Could you please advise if we can use custom validation with this form?
@nandoomb2 жыл бұрын
Great, but... If you put your buttons (next, back,...) inside your "Step Component". How could you do that?
@yahiachougui60742 жыл бұрын
Great video, is there a way to pass the fnction next() or a function goTo() to one of the step elements? that way when you have like a summary step where you review all the information you can go back to a particular step and change the information in it?
@pofiabel95262 жыл бұрын
Hi I am currently having same challenge. Can someone anyone please respond to this question. Thanks in anticipation.
@amitakolkar23892 жыл бұрын
This is a great way to create a multistep form. Thanks for sharing. How can we handle a large forms with different sections? Here as well you have maintained one single state at parents and its updating whole object every onchange event. {...pre, ... currentField} Having soo many inputs and those are dependent on each other. As we are passing a object down it rerenders all children components. We can pass a primitive data to children and use useCallback hook at the top. But still it doesn't seems like best way. Can you please create a video on that about how to handle a large forms with best performance.
@whatsapp1762 жыл бұрын
Helpline 📲📩⬆️ Questions can come in⬆️
@deatho0ne5872 жыл бұрын
At 25:42 you have a lot of repeated code that works, but is there a better way in React? I have been working in Angular for quite some time and generally make arrays of objects that make repeated stuff. Something like [{field: 'localZip', maxLength: 5, type: 'number'}, {field: 'city', maxLength: 30, type: 'text'}]. That array would make all the HTML elements and the labels would use the field to make something like "Local Zip" and "City".
@Zikakoo2 жыл бұрын
Yes, a cleaner way to do it is to create an array of objects from the interface keys and fill in the needed information per input (label, required, value etc whatever is needed). Passing the values as an object you can access the inputs own value with the bracket notation. Then loop through that array of objects to create the inputs needed.
@turbulantarchitect52862 жыл бұрын
Hi Web Dev Simplified, can you please make a series on how to create reusable form component, input components, error/validation handling with Hooks. Thanks
@whatsapp1762 жыл бұрын
Helpline 📲📩⬆️ Questions can come in⬆️
@zixuanchen88982 жыл бұрын
Very great tutorial, I want to ask about how to let the code auto format when on save?
@coderyan2 жыл бұрын
In most code editors, you can access the "preference" tab, and then you can search for "on save" -- often, you'll see an option to enable format on save
@zixuanchen88982 жыл бұрын
@@coderyan Thank you!
@penguinthesolver1405 Жыл бұрын
Hello! Thanks for tip, but how to implement custom validation for every form in this scheme?
@mddx567 ай бұрын
Thank you!!! 🙌🙌
@gopinathkrm582 жыл бұрын
thanks and great, and I have a doubt from ur Spotify clone video, it is playing only for 30 seconds but how to play it fully. I used audio_preview_url from response data.
@deveshwarzard97815 ай бұрын
if we have to add react-hooks-forms and zod validation what would be apporach then
@xJAYDENFx Жыл бұрын
thank you for this great tutorial sir, please why can i persist data for checkbox ?
@shivamrathore82912 жыл бұрын
Hey, thanks for the video. (apart from video's topic) I am in a little bit of confusion in CSS CONFUSION : can we edit/modify the input box blinking cursor I want to change the input box cursor blinking animation style from blink to expand (like VS code) is this possible? if yes then please make a video or at least tell me how can I achieve this??, if not then why??
@abdullahrafique28832 жыл бұрын
hey thanks so much for this wonderful tutorial. what if I wanna write the custom validation to any of the individual form field?
@deepikarao25937 ай бұрын
How would you use formik with this stepper function for validations
@carolinatavares18432 жыл бұрын
do you think this project could benefic of using useReducer instead of useState?
@Lichkuroro Жыл бұрын
Hey Chief!! , im not using, typescript and when i send the steps from app to useMultiStepHook, it is received as an array of objects, so console.log(steps) reads its info, but console.log(steps.lenght) is undefined.. heres what inside steps [ { '$$typeof': Symbol(react.element), type: 'div', key: null, ref: null, props: { children: 'One' }, _owner: null, _store: {}}, {... }, {...} ] but steps.lenght is undefined.. thnx in advance
@zakidzz2 жыл бұрын
please make a course on typescript bigginer and advanced
@Anushkai1 Жыл бұрын
It great. Thank you very much
@szymonoleszek20862 жыл бұрын
Why did you switch to vite? Is CRA dead now? How are the things look like with setting up the react projects now?
@SeanCassiere2 жыл бұрын
CRA isn't quite dead yet, but you really should be using Vite instead. Since Vite uses ESBuild the dev experience is much faster. Also, it doesn't give you foot guns like polyfilling node_modules into the client which could create some unintentional mess ups.
@juanita81492 жыл бұрын
Any sources on how to accomplish this with Select? Specifically, when the Select is in a separate component?
@rosmildolopes39856 ай бұрын
Can I use "useForm"? like "register" for example? cause I need all inputs are completed
@AMoktar2 жыл бұрын
Amazing thanks 🙏
@mustak_085 Жыл бұрын
@wudao88 Жыл бұрын
Thanks King
@sandeepsinghmehra32372 жыл бұрын
How to add routing and change components with routing within multistep in react-router v6?
@SachinYadav-yx1rcАй бұрын
What if you refresh it would go to step 1 if you're at step 3
@anaordonez7906 Жыл бұрын
what does the & mean when he declared the UserFormProps??? type UserFormProps = UserData & { updateFields: (fields: Partial) => void; }
@Distortie2 жыл бұрын
Anyone have issue with pages 2 and 3 not keeping their data when going back and forwards through the buttons? the data object gets updated.. just not the data staying inside the input fields
@karis75392 жыл бұрын
Would be so much cooler with carousel animation
@eddyelamin90152 жыл бұрын
Hi Kyle can you help me with this mongoose error : Task validation error path content is required Im on version 6.6.5 btw
@nirajgurung8348 Жыл бұрын
How can we add frontend validation in this form?
@oleksiihm2 жыл бұрын
Thanks so heplful!
@leonitshaqiri96719 ай бұрын
How to achieve this results with Formik and Yup validation
@awekeningbro12072 жыл бұрын
Is there a reason why is the form data state and the form data handler not put in the hook?
@SeanCassiere2 жыл бұрын
That is because the hook is being used purely for managing the logic of the multi-step process. This would then allow for multiple independent multi-steps forms sets to be implemented without having to duplicate and manage that logic. Plus the form state and submit stuff could change quite abit depending on the type of info being collected and is better left to the dev to handle that individually.
@Alyaman_Accounting_System2 жыл бұрын
awesome thank very match
@mr_parth_dadhich Жыл бұрын
How to use that goTo Function ??
@kanishkkumar535 Жыл бұрын
you are fast AF
@amirulidzham2 жыл бұрын
Angular not supporting vite yet?
@bigguns8452 жыл бұрын
How can i build a booking appointment for a doctor office
@irfansaeedkhan72426 ай бұрын
custom error messages missing which should also disable next button