Skip to content

bennettdams/workshop-react-server-components

Repository files navigation

Workshop for React Server Components

This app was used at a workshop to introduce React Server Components & Server Functions.

October 2024

Workshop notes

See https://github.com/bennettdams/workshop-react-server-components/blob/main/workshop-notes.png

Pages

  • 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)

Dev setup & requirements

  • Node v22
  1. npm install
  2. npm run dev
  3. Available at http://localhost:3000

About

Material for workshop about React Server Components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages