~/talk

JavaScript prerequisites for React (hooks)

Talkat reactjsday 2020 · on Thursday, 2020-10-15· [javascript, react]
slides:none on file

Covers concrete gotchas and fixes: demonstrates automatic semicolon insertion breaking multi-line return of JSX and fixes with parentheses, shows array destructuring as the reason useState returns [value, setter] and why code uses const [count, setCount], builds small components (stopwatch, button) to show event closures capturing state, proves mutating arrays with push prevents re-render because React compares references with === so use spread to create new arrays, and recommends let/const over var and learning hooks first.

AI-written summary · about

  1. 0:00Start
  2. 1:15JavaScript prerequisites for React (hooks)
  3. 2:40Automatic Semicolon Insertion (ASI)
  4. 6:06Object Destructuring
  5. 11:48Array Destructuring
  6. 16:14Immutability
  7. 23:53Conclusion
~/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.