-
Node.js 20.11.0 and npm 10.2.4
I recommend using a version manager like Volta, asdf or nvm.
-
A code editor
I recommend Visual Studio Code.
-
Sign up and verify your email address.
-
Clone the workshop repository with Git:
git clone https://github.com/GregBrimble/react-server-components-workshop.git
Or if you prefer using SSH:
git clone [email protected]:GregBrimble/react-server-components-workshop.git
-
Open this folder in your favorite code editor. I recommend VSCode.
-
Install the dependencies using
npm
:npm install
-
Log in with Wrangler:
npx wrangler login
-
Populate the
CLOUDFLARE_WORKERS_SUBDOMAIN
value in./constants.ts
. You can find your subdomain in the sidebar of the Cloudflare Workers & Pages dashboard. -
Get started with the first exercise in
./exercises/1-client-side-rendering
. Check out theREADME.md
file for instructions!
- Client-side rendering
- Intro to Workers
- Server-side rendering
- RSC data loading
- RSC compiler
- Loading data from a database
- Smart Placement
Thank you for participating in this React Server Components 2024 workshop! I hope you found it valuable and had fun. Please consider taking a few minutes to fill in this survey so I can improve for next time!
After you've completed this workshop, there is much more you can explore with React Server Components and the Cloudflare Developer Platform. Some other topics of interest may include:
- Server Actions
- Module splitting
- Lazy-loading on the client (and server!)
- AsyncLocalStorage
- Cloudflare Durable Objects
- Flight ESM fixture
- Aviation