~/talk

Typescript + React

Talkat Connect.Tech 2022 · 2022-11-07..11-09· [typescript, react]
slides:none on file

Shows concrete TypeScript techniques that prevent real bugs: type-safe props that are required by default or optional with ?, function prop signatures (parameters and void returns), union literal types for variants, and tuple-return hooks fixed with as const. Demonstrates tooling: VS Code intellisense and a Babel + TypeScript plugin for gradual migration. Covers useState inference and generics for nullable state, useEffect cannot return a Promise, and advanced patterns like discriminated unions and merging DOM props with the Omit utility to build a safe button component.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 6:44Props and TypeScript basics
  3. 21:49TypeScript with React hooks
  4. 30:04Advanced TypeScript patterns
  5. 39:03TypeScript limitations and adoption
  6. 43:39Q&A session
~/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.