~/talk

To render or Not to render

Talkat GrillJS 2019 · 2019-09-07..09-08· [react, frontend-architecture]
links:none on file
slides:none on file

Explains the two meanings of "render" — the React render phase that builds a tree of React elements and the DOM commit phase that paints the page — and shows how React 16's Fiber reconciliation turns renders into interruptible, pausable work using a linked-list of fibers and requestIdleCallback. Builds a small wishlist app, measures renders with the Profiler, debugs a 2s re-render caused by a heavy loop, and reduces churn with React.memo, useMemo/useCallback and hoisted constants.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:46Why mastering React tools matters
  3. 4:58From user interaction to rendering
  4. 7:52Two meanings of render in React
  5. 9:18Virtual DOM and reconciliation phases
  6. 11:29Fiber reconciliation explained
  7. 13:44How React processes components
  8. 17:53Fiber node connections and priorities
  9. 20:43Commit phase and effects
  10. 21:49Performance optimization basics
  11. 22:30React.memo and PureComponent
  12. 25:48Profiling with React DevTools
  13. 26:52useMemo for expensive calculations
  14. 29:43useCallback to avoid re-renders
  15. 34:30useRef for stable references
  16. 37:22Premature optimization pitfalls
  17. 38:06Tools for performance debugging
  18. 38:29Summary and closing remarks
  19. 39:19Q&A session
~/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.