An SSR bootstrapper for create-react-app.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
server
src
.gitignore
README.md
package-lock.json
package.json

README.md

cra-ssr-bootstrapper

A non-compromising way to enable server side rendering on create-react-app without ejecting.

Features that work out of the box include:

  • Code splitting
  • Server rendered CSS (styletron)
  • Preloaded server state
  • Routing (react-router)

Up and running

npm run ssr builds the app, transpiles server code and starts Node.

Fixes to do before 1.0

  • Create server bundle instead of transpiling to be able to include assets such as PNG.
  • Documentation that describes which files to copy into a create-react-app directory and which dependencies to add.
  • Increase example project to have several code split routes
  • Enable NODE_PATH=src/ so that absolute paths can be used