macdonaldr93 / minimal-koa-react-webpack-ssr-example

Minimal example of React SSR with Koa and Webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is SSR?

A quick example of how SSR works.

  • /: home page for workshop
  • /csr: Sends a HTML file with a <div> for React to mount on. Includes a script tag referencing the React app
  • /ssr: Sends HTML file after injecting the React app. Includes the script referencing the React app

Getting started

$ yarn
$ yarn build
$ yarn start

About

Minimal example of React SSR with Koa and Webpack


Languages

Language:JavaScript 68.4%Language:HTML 31.6%