Above is an example playground for you to play with React & Redux on Client and Server sides. Before jumping into it, make sure to read SSR tutorial on Freecodecamp (Outdated).
Here’s what we will build in this tutorial:
- Clone the repo:
$ git clone https://github.com/Rohitkrops/ssr.git
- Go to the project directory and install dependencies:
$ cd ssr && yarn install
Launch the server:
$ yarn start
Now, the application is running at http://localhost:3000. The homepage is Sever Rendered and '/client' is client side rendered.
This tutorial is to help you understand the concept behind server side rendering of a React application. Don't use this in Production.
For that use mature solutions, I would recommend Next.js
🥳