~/talk

Enhancing React Performance: Mastering Re-render Optimization

Talkat ReactNext 2024 · on Monday, 2024-06-24· [react, frontend-architecture]
links:none on file
slides:none on file

Shows a practical pattern that cuts needless re-renders by giving React the same element instance across updates: isolate state and provider inside a ContextWrapper that creates the provider once, lift the expensive UI out of the frequently updating tree, and pass the heavy component down as a child or rendered prop so React reuses the previous fiber node. The demo builds a form plus a flashing heavy component and proves the heavy component stops re-rendering when its element identity is preserved, so performance improves without external libraries.

AI-written summary · about

  1. 0:00Intro
  2. 2:56Example
  3. 3:45Demo
  4. 4:39Explanation
  5. 7:05React Components
  6. 8:15React Props
  7. 10:58Conclusion
~/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.