React Dynamic Form Tutorial | react-hook-form & zod

Опубликовано: 14 Июль 2022
на канале: Austin Shelby
13,535
414

In this tutorial you will learn how to build a dynamic React.js form using react-hook-form, zod, and TypeScript.

CLONE REPOSITORY https://github.com/AustinShelby/Dynam...

We will be using the discriminated union validator by zod to build a dynamic form validation schema.

You will learn how to use that custom validation schema with react-hook-form to render dynamic inputs based on form state.

Timestamps:
00:00 Intro
00:40 Form validation schema
02:44 react-hook-form
04:34 Dynamic field
06:24 Submitting form
08:24 Outro