~/talk

Flow Typing a React Codebase

Talkat React Amsterdam 2017 · on Friday, 2017-04-21· [react, typescript]
slides:none on file

Adds Flow to a React codebase and shows concrete steps: annotate files incrementally to reach 100% coverage, use Babel to strip types but also publish .flow files alongside transpiled output, and fetch community libs with flow-typed. Demonstrates exact object types, read-only arrays/properties and generics to avoid common bugs, and warns that runtime checks are too slow for production so build two bundles and swap by NODE_ENV.

AI-written summary · about

  1. 0:00Intro
  2. 3:13Why Static Analysis?
  3. 4:20Eslint
  4. 6:06Refactor
  5. 6:47Java/C#
  6. 7:44Type Script
  7. 8:27Escape Hatches
  8. 12:28React
  9. 16:05Publishing to npm
  10. 18:14flow-runtime
  11. 20:26Exact Object Types
  12. 22:01ReadOnlyArray
  13. 24:31Read Only Property
  14. 26:14Example Problem
~/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.