~/talk

Get your forms hooked with react-hook-form

Talkat code.talks 2022 · 2022-09-15..09-16· [react, frontend-architecture]
linkedin:keren-kenzi
slides:none on file

Live demo of react-hook-form shows the actual API and behavior: useForm returns form state (isDirty, isValid), register injects onChange/onBlur/ref, and handleSubmit gives success/error callbacks; validation works via resolver with Yup or built-in rules (required, validate, valueAsNumber), form context via FormProvider registers child inputs, and reset/getValues preserve or replace defaults. Library claims on npm Trends and a 8.8 KB bundle with no dependencies (surpasses Formik) are shown and the demo features work as demonstrated.

AI-written summary · about

  1. 0:00Introduction
  2. 0:31Who am I
  3. 1:00Challenges
  4. 1:18Managing
  5. 1:41NPN Trends
  6. 2:02Comparing NPN Trends
  7. 3:30Bundlephobia
  8. 5:53UseForm
  9. 6:27Console Log
  10. 6:46Register
  11. 7:27Clear console
  12. 7:41Register fields
  13. 8:48View data
  14. 9:19Precreated schema
  15. 9:34Scheme of relation
  16. 10:08Schema
  17. 10:46Building Validation
  18. 12:11Validation Mode
  19. 12:55Submit Mode
  20. 13:10Change Default Values
  21. 14:37Child Components
  22. 14:51Form Provider
  23. 15:44Additional Input
  24. 16:07Use FormContext
  25. 16:46See number of sessions sent
  26. 17:14Refresh form
  27. 17:33Validate
  28. 18:02Testing
  29. 18:37Reset
  30. 20:20New values
  31. 20:42Changing values
  32. 21:39Thank you
~/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.