Overview
The React Server Components Demo is a sample application built with Server Components, an experimental React feature. It is recommended to watch the introductory talk before exploring this demo to understand how Server Components work and the features they provide.
Features
- Server Components: Demonstrates running components purely on the server.
- Experimental Feature: Provides insights into the upcoming Server Components technology.
- Updated Demo: Reflects the latest conventions as of March 2023.
Installation
- Ensure you have Node 18 LTS installed.
- Run
npm install
after runningnvm i
if using nvm. - Start the demo with
npm run start:prod
. - Access the demo at http://localhost:4000.
Summary
The React Server Components Demo is a valuable resource for experimenting with the new Server Components feature in React. It provides insights into running components on the server and the potential benefits they offer. However, it is important to note that Server Components are still experimental, and the demo may not reflect the performance characteristics of a stable release.