Try Brilliant Free for 30 days + 20% Off Premium Membership → https://brilliant.org/CosdenSolutions
🚀 Project React → https://cosden.solutions/project-react
📥 Import React (Newsletter) → https://cosden.solutions/newsletter?s=ytd-rtkq
Source Code → https://github.com/cosdensolutions/code/tree/master/videos/long/rtk-query-tutorial
Join The Discord! → https://discord.cosden.solutions
VSCode Theme | Font → Material Theme Darker | Menlo, Monaco "monospace"
In this video we will learn how to handle Zod validation in React. We will learn how to create a schema with Zod, how to specify different properties such as strings, numbers, arrays, and objects, and we will learn where we typically use Zod for validation in our React applications!
TIMESTAMPS
00:00 Intro
01:05 Project overview
03:01 API slice setup
06:36 Query endpoint
11:39 Brilliant
13:07 Fetching data in component
20:12 Adding types to query
23:01 Mutation endpoint
29:03 Outro