React Server Components + Prisma + React Router

This is a fork of the official React Server Components Demo with Prisma. You can learn more about how Prisma and React Server Components fit together in this video.


  1. Setup PostgreSQL database.
  2. Set environment variables in .env file. See .env.sample for reference.
  3. Install dependencies.
    npm i
  4. Run database migration
    npx prisma migrate dev
  5. Start server.
    npm start
  6. Open http://localhost:4000 in browser.


Both React server components and react-prisma are in experimental stage.
Not recommended for production usage.


This demo is MIT licensed.

The GitHub Link: