~/talk

Unleashing the Power of Duck-Typing in React: Crafting a Generic Application

Talkat React and Chill 2024 · on Thursday, 2024-08-22· [react, typescript]
slides:none on file

Shows how to build a working generic React+TypeScript platform that renders pages from an array of component models fetched per route id, using duck typing and type predicate functions to narrow unknown data. Implements a switchyard component that maps five component models (input, checkbox, button, accordion, text) to concrete UI, using useState and standard routing. Example app renders a simple form with text field, checkbox and an outlined submit button.

AI-written summary · about

  1. 0:00Introduction
  2. 2:12Duck typing benefits
  3. 6:11TypeScript for generics
  4. 11:43Components with interfaces
  5. 14:59SwitchArt component
  6. 18:38Routing in React
  7. 23:51Key takeaways
  8. 24:57Q&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.