Back to Browse

Ep 189 - SPAs in React 19

1.8K views
Jul 11, 2024
59:35

Sam and Ryan discuss the new features in React 19 that will specifically benefit developers building single-page applications. They talk about how Suspense and Transitions let developers "teach" React about when their apps are in a loading or a pending state, how Client Actions improve upon using events in React 18 to handle data mutations, and how Actions enable React Components to automatically render and discard optimistic updates without any knowledge of the application's data layer. They also discuss several new Hooks like useOptimistic, useFormStatus, useActionState, and useOptimistic. PODCAST INFO: Podcast website: https://frontendfirst.fm Apple Podcasts: https://podcasts.apple.com/us/podcast/frontend-first/id1288274408 Spotify: https://open.spotify.com/show/2wcxse0NdM4vu5qMCiIzTj?si=01a2d394d3b34a00&nd=1&dlsi=164e7a3a4f444e7e TIMESTAMPS: - 0:00 - Intro - 2:19 - How SPAs are built in React 18 - 5:29 - How Suspense made loading a first-class concept in React - 7:48 - The problem with data writes in React 18 - 10:37 - What are Client Actions? - 12:05 - What does it look like to use Actions? - 14:13 - What are the benefits of Actions? - 18:46 - How does React 19 change the Optimistic UI story? - 29:40 - Working with Transitions outside of Actions - 36:06 - The useActionState Hook - 37:51 - Using Transitions to keep the old UI rendered and responsive - 41:25 - How Transitions enable better composition patterns in third-party libraries - 43:55 - Building a SortableList that flips between being controlled and uncontrolled LINKS: - "React Unpacked: A Roadmap to React 19": https://www.youtube.com/live/T8TZQ6k4SLE?si=rxfqP8Nu5_JKLjvr&t=10112 SOCIAL: Twitter: https://twitter.com/frontendfirstfm

Download

1 formats

Video Formats

360pmp4165.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Ep 189 - SPAs in React 19 | NatokHD