/rsc-ssr-rcc-setup

React Server Components setup. With this setup you can develop fullstack SPA's with React using RSC. You can use prisma on the server to fetch a database or connect to an API with secret keys hidden from the Client (browser).

Primary LanguageJavaScript

RSC + SSR + RCC setup

!!! IMPORTANT!!! This is outdated and not mantained. Please visit HERE for a RSC Setup and HERE for a RSC+SSR Setup.

This is a setup for development with RSC (React Server Components) plus SSR (Server Side Rendering) plus RCC (React Client Components). An identical setup but with the minimum to start developing can be found here. I left this setup (with more RCC's than necessary) for the people with less experience to see how it works.

How to install and run the project.

  1. npm i
  2. npm run dev
  3. npm run app (in a new terminal window)
  4. enter localhost:8080 in the browser.

More Info

An article explaining the theory behind this project can be found here.

Another article explaining this setup and the theory behind it can be found here.