- See the Live Server Components (RSC) Notes App Demo / Playground
- Read the blog post React Server Components, without a framework
Please note, there is absolutely nothing optimal about the following implementation yet, it is purposely naive, incomplete, and is intended for learning & demo purposes.
- a somewhat functional React Notes App (listing, creating, editing & deleting notes with a text title & Markdown content)
- React Server Components used alongside Client Components
- some sort of server-side rendering
- some kind of data-fetching using Server Components
- routing that somewhat works both in the client & on the server
- refreshing server components from the client
- a usable RSC playground
- above all else: learn
Developed on Node.js v18.18.1 + npm v9.8.1
git clone
this repositorynpm ci
- start a Webpack process, watching for changes in
./src
and outputting built files to./dist
- start a Node.js HTTP Server (with Fastify) at http://localhost:3000, watching for changes in
./server
,./src
&./dist
with Nodemon
npm run dev
Run the Webpack build & start the Node.js HTTP Server, for production.
npm run build
npm start