AI summary by TwinMind

React Just Changed Forever

Theo - t3․gg

14m 33s

React 19 Release Update

  • React 19 now in RC (Release Candidate) status
  • Stable version shipping within next couple weeks
  • Major change: removal of forwardRef in favor of passing refs directly
    • Crowd reaction was very positive at React Conf
  • Previous deep dive video already available covering React 19 features

React Compiler Open Source Release

  • Previously known as "React Forget" from last React Conf (~3 years ago)
  • Just went open source during/after the keynote
  • Massive codebase: 1,900 commits, 300,000+ lines of code
  • Includes both JavaScript and Rust versions (Rust still in progress)

React Compiler Purpose & Problem Solving

  • Addresses React's common performance issues
    • Unexpected component updates causing sluggish performance
    • Alternative to signals-based solutions and new frameworks
  • Goal: keep React code elegant without manual memoization
  • React team acknowledging pain points of their own primitives (memo, useCallback, useMemo)

Production Performance Results

  • Instagram.com using React compiler for several months
  • Performance improvements despite already optimized codebase:
    • 2.5x improvement in app responsiveness for certain interactions
    • Significant improvement in page load times
    • Up to 177% code reduction in memoized components
  • Also deployed in React Native apps (Oculus/Quest store)

Technical Implementation Details

  • Build-time only tool (Babel plugin)
  • Works with plain JavaScript, understands React rules
  • File-scoped optimization (doesn't cross file boundaries)
  • Automatic memoization without manual use of memo/useCallback/useMemo
  • Backward compatible: existing memoization can remain

ESLint Plugin Integration

  • Surfaces compiler analysis directly in editor
  • Runs independently of compiler
  • Recommended for all React developers
  • Stricter version of rules-of-hooks plugin
  • Meta team improved their React rules compliance through this tool

Compiler Behavior & Requirements

  • Requires strict adherence to React rules
  • Automatically skips components/hooks that break rules
  • Continues safely compiling other code
  • Deep understanding of JavaScript semantics and React rules

Adoption Readiness

  • Still experimental with rough edges
  • Used in production at Meta but not ready for all production use
  • Encourages small experiments and feedback
  • Can wait for stable release before full adoption

Rust Port Development

  • Work-in-progress Rust port exists but unused
  • Developed to understand feasibility for porting
  • Integration planned with rust/non-JS build systems (swc, oxc, esbuild)
  • Data representation refactoring in progress to improve compilation
  • Re-evaluation after refactoring complete

Live Demo Results

  • Test setup: slow component blocking 2 seconds synchronously
  • Without compiler: 4+ second delays (2x rendering in dev mode)
  • With compiler: immediate response without manual memoization
  • Generated code shows extensive caching mechanisms
  • Build performance impact minimal in testing
  • Hot reload remains snappy despite Babel processing

Generated Code Analysis

  • Compiler generates internal memoization syntax ($c2, etc.)
  • Extensive cache sentinel checks
  • Every variable gets cached for potential reuse
  • Significantly more generated code but optimized execution
  • JSX elements made pure and cached when possible

Additional Resources

  • React compiler playground available for testing outputs
  • Jack Harrington early access video recommended for deeper examples
  • Short URL: facebook.me/react-compiler

TwinMind

Get summaries like this for your own meetings

TwinMind takes notes in the background during meetings, lectures, and calls, then writes the summary for you.

Free plan to get started

No bot joins your calls

Phone, desktop & Chrome apps

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome