• This repository has been archived on 11/Nov/2020
  • Stars
    star
    278
  • Rank 147,959 (Top 3 %)
  • Language
    JavaScript
  • Created over 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React Server-Side Rendering Example

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

๐Ÿฅณ