~/talk

React in 40 minutes

Talkat JCON-ONLINE 2021 · 2021-10-05..10-08· [react, frontend-architecture]
slides:none on file

Forty minutes of live coding shows React’s core: JSX transpiles (via babel/tsc to react.createElement), a virtual DOM with reconciliation, and practical patterns—components (capitalized), fragments, key prop for stable list identity (demonstrated by a shuffled ticker that otherwise recomputes random prices), state via useState, event handlers, fetch-based data loading (demoed with a joke API), localStorage/sessionStorage, and tooling: create-react-app, React DevTools, Jest + React Testing Library. All demos run and illustrate real-world tradeoffs and gotchas.

AI-written summary · about

  1. 0:00Start
  2. 4:43CLASSES
  3. 5:38ARROW FUNCTIONS
  4. 5:54OBJECT DECOMPOSITION
  5. 6:46ARRAY DECOMPOSITION
  6. 7:36OBJECT SHORTHAND NOTATION
  7. 8:15STRING INTERPOLATION
  8. 11:41ATTRIBUTES Elements can have attributes, but they can have different names than HTML attributes
  9. 13:24SINGLE ROOT NODE
  10. 15:04COMPONENTS Function that takes props think arguments and returns a React element
  11. 17:03EXPRESSIONS IN JSX
  12. 18:16OR USE YOUR PROPS / ARGUMENTS!
  13. 20:09CONTROL STATEMENTS INSIDE JSX (2)
  14. 26:221. ELEMENTS OF DIFFERENT TYPE
  15. 27:502. THE KEY PROP
  16. 31:39LOCAL STATE INSIDE A COMPONENT
  17. 32:45CLICK CALLBACKS
  18. 33:50CHANGE CALLBACKS
  19. 35:282. A COMPONENT TO SHOW THE FETCHED DATA
  20. 37:33INSPECTING COMPONENT TREE
~/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.