Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

destructobeam/react-ssr-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React SSR Starter

Very barebones starter kit for server rendering React applications, probably could be easily used for any other JavaScript framework that can render to string.

Includes Webpack hot reloading for server and client apps.

Client

  • React
  • React Helmet Async

Server

Uses the wonderful nature of Koa's async function middleware to encapsulate the series of steps required to render your application on the server.

Notes

Prefetching

If you want route based prefetching, After.js seems like a good option.

GraphQL should be fetched on server by something like ApolloClient.

TODO

  • External asset webpack plugins
  • Figure out and implement client only code splitting for when you need super fast TTI, and don't care about overly complex auxiliary interfaces being rendered on the server and included in the initially loaded bundle.
  • Possibly use streaming response on server
  • Testing setup
  • Production settings

About

React with server side rendering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published