/ssr

React Server-Side Rendering Example

Primary LanguageJavaScript

React Server-Side Rendering Example

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:

Clash of Clans app card

Development

  • 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.

Note

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

🥳