~/talk

How React Compiler Performs on Real Code

Talkat React Advanced 2024 · 2024-10-25..10-29· [react, frontend-architecture]
slides:none on file

React Compiler is run on a fresh TypeScript app of 15,000 lines and measured with Lighthouse (five-run averages). Initial load shows minimal regressions, while interaction times improve dramatically on some pages but only modestly on others. Rerender causes include new-array references returned by React Query and incompatible external libs like fuse, so manual memo or refactoring (spreading objects into primitive props) still fixes cases the compiler misses. Turning the compiler on is low-cost and often “good enough,” but it does not eliminate all manual optimization.

AI-written summary · about

  1. 0:00Introduction
  2. 2:15Why React Compiler was created
  3. 3:40How memoization works in React
  4. 5:24Promise and limitations
  5. 7:34Key questions
  6. 7:55Testing on synthetic examples
  7. 11:27Evaluating on real app
  8. 12:51Initial load performance impact
  9. 13:56Interaction performance impact
  10. 15:23Debugging unexpected renders
  11. 18:14Investigating React Query data fetching
  12. 20:46Final verdict
  13. 21:06Can compiler catch all unnecessary renders
  14. 22:54Summary
~/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.