~/talk

Experiments with React Compiler in Production Code

Talkat React India 2024 · 2024-10-15..10-19· [react, frontend-architecture]
links:none on file
slides:none on file

Integrated the React Compiler as a Babel plugin and a runtime module into a 25-package monorepo with NX and pnpm, then ran the hcheck that reports 82% compatible of ~3500 components (about 600 non-memoized components). Patched hcheck to list reasons and found four main blockers: computed/member expressions, tagged templates, many eslint-disable exhaustive-deps hooks, and custom hook patterns. Profiling shows up to 80% skip on forms in the render tree, but real-user INP and Sentry metrics show no clear user-visible gains; auto-memoization works but some optimizations still need manual fixes.

AI-written summary · about

  1. 0:00Introduction to React compiler
  2. 0:56Compiler integration
  3. 2:39Challenges and limitations
  4. 4:19Debugging compatibility issues
  5. 6:19Fixing and refactoring code
  6. 7:46Measuring performance gains
  7. 9:19User experience metrics
  8. 10:46Memoization code experiments
  9. 18:57Conclusion and future outlook
~/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.