AI summary by TwinMind
I didn't expect Meta to push React this hard...
Theo - t3․gg
22m 16s
React's Platform-Agnostic Architecture
- React separates core framework from rendering layer (React DOM, React Native, React 3 Fiber)
- React DOM handles browser rendering with div elements
- React Native uses View/Text components for mobile platforms
- React 3 Fiber enables 3D rendering with box/shader elements
- React Native as generic shim with platform-specific bindings
- Different implementations for iOS, Android, Windows, VR platforms
- Mental model and hooks remain consistent across platforms
- Enables code reuse without requiring identical implementations
Meta's VR/AR Applications Built with React Native
- Instagram and Facebook rebuilt for Meta Quest mixed reality
- Hero experience designed specifically for Quest platform
- Leverages additional input types, gestures, large visual surface area
- Rich animations: seamless video transitions, swipe gestures, hover animations
- React Native chosen over porting existing Android apps or native development
- Meta Quest system apps predominantly built with React Native
- Store interface uses React Native
- Most 2D system applications utilize React Native
Performance Optimizations and Technologies
- Static Hermes compilation to native assembly code
- Compiles JavaScript to minimal native instructions
- Performance approaching C-level efficiency
- Network request optimization as primary performance factor
- Initiating queries earlier in navigation flow
- Moving network fetch to button click rather than component render
- Render-as-you-fetch vs fetch-on-render methodology
- React compiler adoption across all Meta React applications
- New React Native architecture implementation
Meta Horizon Mobile App Development
- Performance benchmarked against Facebook Marketplace
- Cold start performance exceeded expectations
- On par with Meta's mobile social apps
- React Native initialization only when visiting React Native surfaces in Facebook app
- Profiling using Android Systrace, React Dev tools, new React Native Dev tools
Code Sharing and Cross-Platform Development
- Facebook.com desktop code reused for Quest applications
- Newsfeed and commenting features shared between platforms
- StyleX and React Strict DOM enabling cross-platform compatibility
- Meta's internal router working across facebook.com and React Native
- Spotlight section components shared between web and mixed reality
- Internationalization and theming acceleration
Meta Spatial SDK and Desktop Editor
- Spatial Editor built with React Native for desktop
- Microsoft contributing to React Native for Windows/Mac
- Windows 11 components (including start menu) use React Native
- Custom 3D rendering engine integration
- Native component integration with C++ renderer
- 60fps UI updates communicating with 3D engine
- C++ engineers initially skeptical, converted by developer experience
- Fast refresh and hot reloading capabilities
- State preservation during code changes
React Team's Multi-Platform Vision
- 5,000+ Meta employees using React monthly
- Platform-specific optimizations benefiting all platforms
- Memory usage improvements from Quest constraints benefiting all React applications
- Startup and responsiveness improvements
- Battery efficiency optimizations
- Code sharing with platform-specific customizations
Open Source Contributions
- React compiler, React 19, new React Native architecture
- StyleX, Strict DOM, Hermes performance improvements
- Future innovations in development for open source release
