React Hook Form with ZOD Tutorial - React and Typescript Form Validation Tutorial

preview_player
Показать описание

In this video we go over react form validation using zod and react hook form.

Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Tags:
- ReactJS Tutorial
- ReactJS and MySQL
- NodeJS Tutorial
- API Tutorial

REACT HOOK FORM ZOD TIMESTAMPS

00:00 | Intro
01:51 | Introduction to the Zod Library
02:58 | Installing Packages
03:41 | Creating the structure of the Form
06:30 | Defining Form Structure using Zod
18:33 | How to display Error Messages

#reactjs #coding
Рекомендации по теме
Комментарии
Автор

You could also transform the structure of your schema into TypeScript by typing: `type FormData = z.infer<typeof schema>`
This way you save yourself the boilerplate and also allow TypeScript to infer your schema type.

By the way, great tutorial about forms.

delavalom
Автор

Hey Pedro i want more Typescript stuff in future I love TS.

prashlovessamosa
Автор

anytime i want to learn something, ill first check if you have a video for it, cause your style of explanation is so simple and we developers can take what u teach then scale it up ... welldone, keep it up 🤗

ogheneminesmart
Автор

Great tutorial, helped me finalize my choice on using Zod for form validation. Thank you.

thelimij
Автор

It was really a very good video, I hope you continue making many more, thank you very much teacher Pedro...

risbelsuarezrodriguez
Автор

pedro again, with another great timing

wallace_lw
Автор

really a useful tutorial which is way better for understanding the validations..keep going

manishankart
Автор

Hey, thanks for the tutorial! It was pretty useful.
If I may, I would like to add a concern about initialization the schema inside the component render function. It hames this schema creation happen every rerender of your component. Even though it doesn't seem to be a expensive operation, it maybe could be done outside the component scope.

rjborba
Автор

Thank you for zod tutorial, hope next content is about next, ts and react query mutation.

hardwired
Автор

very good explaination, fully understand❤❤❤❤

zaheerabbas
Автор

the auto complete package in your terminal looks really cool

mjbalcueva
Автор

Jod!! this should be the way of teaching man. we are here because it is complex to understand, and they are making it even complex.

harishkhojare
Автор

Hello, I have bought the subscription on brilliant Just keep doing what you do you have helped me alot❤

saqibkhan
Автор

thanks for sharing this awesome tutorial🔥🔥🔥

shinmini
Автор

I do have a very similar configuration and it seems that refine is having trouble finding the confirm password to be the same with password (so it doesn't really update the errors object correctly).
Any thoughts ?

Also can you specify zod, react-hook-form, resolvers versions for this ?

georgios_georgiou
Автор

Hello, can you tell me at 4:30 what is the command suggestion and autocomplete plugin that appears when you type a command in the terminal?

kjchyvq
Автор

Hi Pedro, what I am working with Next 13 and need a library which is simple or tool to send e-mails when having a contact form which I have created with Typescript and React HOok Form. Which tool do you use to send emails?

sjonny-depp
Автор

Wow! Never thought Zod is cool.its is better than yup because of its typescript support and ease

manoj.k.m
Автор

What's the extension that shows packages as you write them in the terminal? This is so cool!

v
Автор

Could you please do an example where you use this with a componentized form (one where the inputs have been extracted out as reusable components?)

jasonterry