Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

handyman-rk/ssr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

🥳