Skip to content

Instantly share code, notes, and snippets.

@ivan-kleshnin
Last active December 28, 2018 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan-kleshnin/32284bd9a5ad1edd7a03b13fa0114275 to your computer and use it in GitHub Desktop.
Save ivan-kleshnin/32284bd9a5ad1edd7a03b13fa0114275 to your computer and use it in GitHub Desktop.

A tale of SSR

Attempts to recover our SSR functionality.

  1. After.js [-]
  • Semi-dead project. Suggest to switch to Razzle (its core)
  1. Razzle [-]
  • No docs
  • No examples (except hello-world approximations)
  • Requires to tune Webpack and Babel (what's the point of using it then)
  1. Next.js [-]
  • Good docs
  • Not configurable
  • Ships bad tools (styled-jsx instead of styled-components, weird path-based Router instead of React-Router)
  • Heavy DRY violations in <Link/> usage
  1. Nest.js [-]

Node framework. Unrelated.

  1. Basic React [-]
  • Suspense does not support SSR (yet)
  1. Prerenders [-]
  • React-Snap, React-Snapshot – not configurable (impossible to set starting hostname:port – wtf?!), didn't work at all
  • Prepender.io – expensive, stupid
  1. "Loadable" tools [-]
  • react-loadable – tried and failed to setup it, too complex
  • loadable-components – tried and failed to setup it, too complex
  1. CRA+ [?]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment