~/talk

Server Components for the Rest of Us

Talkat reactjsday 2023 · on Friday, 2023-10-27· [react]
slides:none on file

A concrete demo shows server components as a data‑fetching mechanism: an Express server renderer uses React’s renderToString plus a custom unwrap RSCs routine to await async components, file‑system routing loads page modules, and a JSON replacer serializes React’s symbol types into window.initialJSX. The client derializes that tree, hydrates and performs soft navigation, preserving entered state between pages. Tools shown include Vite, renderToString, fetch/unichi; the implementation works and yields server‑rendered, indexable HTML with smooth client transitions.

AI-written summary · about

  1. 0:00React Server Components intro
  2. 1:06Server component mechanics
  3. 3:35Dog site demo
  4. 5:21Adding server-side rendering with Express
  5. 7:49File-system routing
  6. 10:17Async data fetching
  7. 13:07Server component promises
  8. 19:53Server-rendered data components
  9. 21:18Adding client-side React
  10. 23:02Serializing component trees
  11. 27:17Soft navigation with React
  12. 32:18Summary and use cases
  13. 33:24Q&A
~/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.