~/talk

Type-safe forms for React using Zod

Talkat React Finland 2022 · 2022-09-12..09-16· [react, typescript]

Shows how Zod schemas become runtime validators and TypeScript types so HTML form values validate Zod schema inference and fail fast on mismatch. Demonstrates extracting plain objects with the FormData API, handling nested fields and arrays, and keeping client and server validation identical. Adds practical tools: createCustomIssues for server-only errors, hidden inputs to adapt third‑party UI, and a small hook to read specific values when conditional rendering needs React state.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19TypeScript limitations
  3. 3:49Introducing Zod
  4. 5:39Type-safe forms with Zod
  5. 8:55Avoid traditional libraries
  6. 9:57Introducing react-zorm
  7. 13:17Server validation with Zod
  8. 15:03Server-only validation
  9. 17:54Third-party UI integration
  10. 19:43Conditional fields
  11. 20:48Performance and flexibility
  12. 21:31Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.