Тёмный

The Best Way to Build Forms in React - React Hook Form Tutorial 

Ravi - Perfect Base
Подписаться 13 тыс.
Просмотров 4,5 тыс.
50% 1

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@StephenRayner
@StephenRayner Год назад
Keep doing this exact format and you will go to the moon!
@kuo1337
@kuo1337 Год назад
actually, I would prefer if he stayed on earth and keep uploading these high quality guides as I believe there is no internet on the moon.
@Suzi-QCodes-gh9rp
@Suzi-QCodes-gh9rp Месяц назад
THANK YOU!!! I spent 6 hours on this today before stumbling on your video!! It works perfectly
@ДаняЦьопич-н1м
@ДаняЦьопич-н1м 2 месяца назад
Bro, thanks! I spend hours, that to solve a one problem, I checked other tutor videos, I read a documentation, but only you helped me.
@allefdouglas9693
@allefdouglas9693 Год назад
I have being thinking on how to improve my components, and i think using the useFormContext inside each component is a better approach then passing the control or register as a param. Also, i like to create the content of my form without having the wrapping it. I will only wrap the component with the form when i am using it. Therefore, i can use the same form for creation and edition of a content, and have the power to control anything i need using the formMethods from useForm()... Ex: const Input = ({ name, label, ...props }) => { const { register, formState: { errors } } = useFormContext() const error = errors[name]?.message return {label && {label}} {error && {error}} } const SignInForm = () => { const { formState: { isSubmitting } } = useFormContext() return sign in } const SignInPage = () => { const formMethods = useForm({ resolver: zodResolver(schema) }) return }
@perfectbase
@perfectbase Год назад
Oh! I didn’t know you could do that.. the FormProvider seems interesting. Thanks for the tip! Will try it out. 👍
@CodingWithLewis
@CodingWithLewis Год назад
React Hook Form is a game changer! I have to give Zod a try!
@perfectbase
@perfectbase Год назад
Thanks for watching! I love how Zod works well with TypeScript!
@Vladik614
@Vladik614 Год назад
Awesome video, like the quality improvements. The animations and the background music are great. Also, I like how you make simple explanation on what forms are. I think it’s very useful to get attention of people who not that familiar with web development and just want to watch some random tech video like I do 😂 In my opinion the quality of the production is crucial for the videos like this. So I would continue with this approach because from my perspective it will increase the amount of viewers. But that’s just my opinion. All in all the only thing that’s really matters is how you enjoy it. If you think that keeping this production quality is too tedious and may affect your performance than it definitely not worth it or maybe you should hire someone to do that work for you. Any ways great job 👍🏻
@perfectbase
@perfectbase Год назад
Thanks a lot for the feedback!! Really appreciate it! Yeah.. I shared it in some other places, and I’m getting great feedback on this one. It does take longer to release, which results in less consistent uploads. But maybe it’s worth it. I’ll try to put more of these in the future as well! Thanks again!! ☺️
@atanusamanta3835
@atanusamanta3835 Год назад
Nice content. Thanks for sharing. Can you make admin panel design with tailwind in your upcoming videos. !!
@perfectbase
@perfectbase Год назад
Thanks for watching! And for the suggestion! I think it could be an interesting video!
@ca8co1230
@ca8co1230 Год назад
This is a great tutrial. thanks a lot
@perfectbase
@perfectbase Год назад
Thanks for watching! Glad you enjoyed! ☺️
@cheattube
@cheattube Год назад
thats beautiful thanks, you are a damn good teacher
@perfectbase
@perfectbase Год назад
Thank you! Glad you liked it!
@darkshadowgks
@darkshadowgks Год назад
appreciate if you could make a series of react tutorials by building a complete project
@perfectbase
@perfectbase Год назад
Thank you for the suggestion! I do plan to do more tutorials in the future. Building a full-stack app is on the list! 😉
@ElSrJuancho
@ElSrJuancho 9 месяцев назад
10/10
@govind9756
@govind9756 Год назад
can i have the source code...
@caiolins2495
@caiolins2495 Год назад
Epic 👏🏼👏🏼👏🏼
@perfectbase
@perfectbase Год назад
Thanks!! 😄
@StephenRayner
@StephenRayner Год назад
Epic!!!!! 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
@bernadethsistoso8050
@bernadethsistoso8050 Год назад
is this useful for next js 13?
@perfectbase
@perfectbase Год назад
I think you mean with the app dir structure? I haven’t used the app dir a lot yet, but I assume it is still useful.
@jp.cortes
@jp.cortes Год назад
Just came to say that I tried today and it works great with the App router.
@perfectbase
@perfectbase Год назад
@@jp.cortes thanks for trying it out and taking the time to share it. 🙏
Далее
10 Tailwind Tricks You NEED To Know!
10:45
Просмотров 296 тыс.
React Hook Form & React 19 Form Actions, The Right Way
16:08
ЛЮБИТЕ ШКОЛУ?😁​⁠​⁠@osssadchiy
00:20
React Hook Form - Complete Tutorial (with Zod)
28:22
Просмотров 119 тыс.
LiveView JS: The Comprehensive Guide
25:42
Просмотров 2,7 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
My Solo SaaS Startup Journey
8:48
Просмотров 8 тыс.
React Formik Tutorial with Yup (React Form Validation)
34:50
How to build elegant React forms with React Hook Form
22:34
ЛЮБИТЕ ШКОЛУ?😁​⁠​⁠@osssadchiy
00:20