~/talk

Form Validations with VEST

Talkat Conf42 JavaScript 2020 Β· 2020-09-30..10-01Β· [javascript, developer-experience]
slides:none on file

Vest is a framework-agnostic validation library that treats validations like unit tests: you write suites with test/enforce, plug them into a React form in about five lines, and get: only validate a specific field via vest.only, async validations with res.done that show a pending spinner while promises resolve, draft results to avoid unnecessary server calls, and test.memo caching to reuse previous async outcomes. Live coding shows regex warnings via vest.warn, class name helpers for success/error states, and that everything works end-to-end.

AI-written summary Β· about

  1. 0:00VEST introduction
  2. 2:55Traditional validation problems
  3. 4:16VEST setup in React
  4. 7:10Display errors and styling
  5. 9:17Multiple field rules
  6. 12:11Validate on change
  7. 13:36Weak password warnings
  8. 15:24Async validations with server
  9. 18:39Optimize async validations
  10. 21:28Summary and benefits
~/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.