~/talk

How to migrate 50,000 lines of code to React Server Components

Talkat Next.js Conf 2023 · on Thursday, 2023-10-26· [react, frontend-architecture]
links:none on file
slides:none on file

A migration of 50,000 lines moves a docs site and marketing site to the App Router and React Server Components, claiming tangible wins: reduced bundle size, localized data fetching, and perceptual gains via Suspense streaming. The concrete process is three steps: add the use client directive at page roots, push it down component by component, then apply advanced patterns. Examples include keeping heavy libs like Prism on the server and splitting CodeBlock into server and client halves to preserve interactivity while cutting shipped JS.

AI-written summary · about

  1. 0:00React Server Components migration intro
  2. 1:44Three-step migration program
  3. 3:54Pushing client directives down
  4. 4:57Advanced Server Components patterns
  5. 6:01Handling unsupported libraries
  6. 6:48Mixing Client and Server Components
  7. 8:10Splitting components between server/client
  8. 9:13Should you migrate to RSC?
~/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.