This app was used at a workshop to introduce React Server Components & Server Functions.
October 2024
See https://github.com/bennettdams/workshop-react-server-components/blob/main/workshop-notes.png
- 01 - Intro: Short introduction that shows using server resources in a React Server Component
- 02 - Streaming: Shows streaming capabilities of RSCs via Suspense and passing down a promise to a Client component
- 03 - Client boundary: Show Client components and their boundary (via
"use client
") - 04 - Server Function: Different kinds of Server Functions/Actions (Server form vs. Client form vs. manual transition)
- Node v22
- npm install
- npm run dev
- Available at http://localhost:3000