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

Minimal example of React SSR with Koa and Webpack

Primary LanguageJavaScript

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