~/talk

What React 18+ Unlocks for Gatsby

Talkat GatsbyCamp Fall 2021 · on Thursday, 2021-09-16· [react, frontend-architecture]
slides:none on file

React 18 enables Gatsby to start rendering in async mode so queries can suspend on the server and hydrate selectively; a new useQuery hook replaces page/static queries allowing variables and falling back to Suspense instead of an isLoading flag. Hybrid routes use underscore layout.js and page fragments so changing a header updates one fragment instead of rebuilding millions of pages. Server components promise up to ~90% less client JS for marketing pages. Demo: install react@next + react-dom@next and Suspense renders Pikachu data into HTML with no fallback.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Concurrent features in React 18
  3. 1:43Impact on Core Web Vitals
  4. 2:45Suspend boundaries and hydration
  5. 3:36StartTransition for responsiveness
  6. 4:45Query hook replaces page queries
  7. 6:29Hybrid routes and layouts
  8. 8:36Static and dynamic page blending
  9. 9:20Server components potential
  10. 11:06Using React 18 with Gatsby today
  11. 12:10Demo of React Suspense in Gatsby
~/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.