~/talk

Wiring TypeScript into React

Talkat ReactNext 2018 · on Sunday, 2018-11-04· [typescript, react]
slides:none on file

Demo wires TypeScript into an existing React app by converting a timer/clock component and showing everything compiles and runs side by side. Steps are concrete: install typescript and awesome-typescript-loader, add @types/react and @types/react-dom, add tsconfig.json with JSX react target, add webpack rule for .ts/.tsx, rename clock.js to clock.tsx, introduce interfaces and static defaultProps, then npm start shows successful compilation. Also notes that create-react-app v2 already includes TypeScript for new projects.

AI-written summary · about

  1. 0:00Intro
  2. 1:02Why TypeScript
  3. 2:20TypeScript Features
  4. 5:14Installing TypeScript
  5. 13:18Summary
~/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.