~/workshop

Workshop: TypeScript Plus React = Love

Workshopat TSConf 2020 · on Friday, 2020-10-09· [typescript, react]
slides:none on file

Concrete claims and patterns: TypeScript eliminates many refactor bugs in React by forcing prop and state shapes, catching missing or mistyped props, and surfacing errors at compile time. Tools and fixes shown include Visual Studio Code intellisense, useReducer discriminated unions, generics for parameterized lists, as const for hook tuples, create-react-app’s TypeScript template, Babel preset-typescript + tsc for tsc --noEmit CI checks, and @types (DefinitelyTyped). Migration is iterative; strict config and utility types prevent subtle runtime failures.

AI-written summary · about

  1. 0:00Start
  2. 24:09VII VS Code integration
  3. 34:471 useState
  4. 43:09III useReducer
  5. 45:56IV Custom hooks
  6. 58:54II Extending HTML components
~/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.