~/talk

Building Considerate React Component APIs with TypeScript

Talkat JSWorld Conference 2021 · 2021-02-22..02-27· [react, typescript]
slides:none on file

A small web app called Barkpark gets ported to TypeScript and component APIs get tightened: vague props like input1 become explicit headerText/bodyText, selects move from any to typed option objects then to a generic T so value types stay consistent, sizes use string literal union for IDE autocomplete, and an erroneous Partial is replaced with omit to prevent misleading props. The wireframe lands and the component APIs prove easier to use and safer.

AI-written summary · about

  1. 0:00Introduction
  2. 0:37Introducing Barkpark
  3. 2:20Onboarding
  4. 8:06Conversion
  5. 20:20Union Type
~/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.