~/talk

What We Learned Optimizing Base UI: Patterns You Can Steal for Faster React Apps

Talkat React Miami 2026 · 2026-04-22..04-24· [react, web-performance]
slides:none on file

Base UI migrates from context-heavy renders to a selector-backed store (custom or libraries like Zustand) using useSyncExternalStore so each option subscribes only to its own isFavorite selector, eliminating broad re-renders. Detached triggers and a handle + payload API centralize popups and reuse one DOM shell, cutting initial mount time by over 50%. React Compiler increases bundle size ~26% so it’s skipped. Additional wins come from reducing allocations (module-scope constants, prefer for loops on hot paths) and batching DOM reads/writes to avoid layout thrashing.

AI-written summary · about

  1. 0:00Introduction to Base UI
  2. 2:59Context re-renders problem
  3. 5:29Store-based state management
  4. 8:44Detached triggers for tooltips
  5. 12:59React compiler limitations
  6. 14:05Memory allocation costs
  7. 17:16DOM operations and layout thrashing
  8. 20:04Performance is a feature
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.