API Routes Validation using YUP: Share frontend and backend validation using YUP schemas
In this video we will add validation to our API Routes using YUP. In order to achieve that in a simple and reusable way we will create a validation middleware that uses YUP for schema validation.
Because we are using YUP, we can now share our validations across front-end and back-end. Form libraries like formik and react-hook-form work very well with YUP.
I hope you enjoy the video :)
-— URLs
GitHub URL:
GitHub commit history:
Video introduction to API Routes:
Video using next-connect (Express like API):
Tutorial Playlist: https:// ...
#BrunoAntunesPT # # #nextjs_tutorial #Nextjs_for_beginners #typescript # #next_typescript #nextjs_typescript #
20210309
ZG7sLbI8kL8
5 views
1536
522
16 hours ago 00:18:09 6
15 Breakdown (Everything You Need To Know) (Дата оригинальной публикации: )
3 days ago 00:04:23 148
Ep23. Use to create rejoinable branch | Core in .NET 9 | C# | 2024
5 days ago 00:06:00 7
Ep22. Use to branch the pipeline | Core in .NET 9 | C# | 2024
7 days ago 00:06:57 7
Ep21. Use to branch the pipeline | Core in .NET 9 | C# | 2024
1 week ago 00:02:52 9
Ep20. Use to create middleware | Core in .NET 9 | C# | 2024
1 week ago 00:16:25 4
Ep19. Use to create middleware | Core in .NET 9 | C# | 2024
1 week ago 00:08:50 6
Ep18. Middleware Pipeline Theory | Core in .NET 9 | C# | 2024
2 weeks ago 00:05:43 12
Ep17. Assignment 1 (Answer) - Display a particular employee | Core in .NET 9 | C# | 2024
3 weeks ago 00:01:44 8
Ep16. Assignment 1 - Display a particular employee | Core in .NET 9 | C# | 2024
3 weeks ago 07:07:52 4
Full Stack with 14, Prisma, NextAuth, Pusher & Cloudinary – Build & Deploy a Dating App
3 weeks ago 00:13:05 13
Ep15. HTTP Response Status Codes | Core in .NET 9 | C# | 2024
3 weeks ago 00:13:05 5
Ep14. HTTP Response Status Codes | Core in .NET 9 | C# | 2024
4 weeks ago 00:09:54 5
Ep13. HTTP Response in HttpContext | Core in .NET 9 | C# | 2024