Skip to content

Instantly share code, notes, and snippets.

@benoneal
Last active September 17, 2017 14:53
Show Gist options
  • Select an option

  • Save benoneal/995e8e766d29ac05d59c278b181a34ed to your computer and use it in GitHub Desktop.

Select an option

Save benoneal/995e8e766d29ac05d59c278b181a34ed to your computer and use it in GitHub Desktop.
SSR considerations

SSR Considerations:

ES Modules Non-js files babel/webpack compile server code Gate browser-specific APIs

React componentDidMount Ensure responsiveness through CSS only

Routing Status codes Redirects Errors

Populating the store Data fetching // isomorphic Request data // user auth, cookies, locals Fetching data from the same server // absolute URLS

Rendering with data View styles Base styles (normalisation)

<script> Favicons CSRF tokens Bundled js Client rehydration Store Fetch cache JS Styles Input values Performance Malicious bots Caching per resource Caching per component // user auth / dynamic content Below the fold content Dev Hot reloading Suppressing React diff warnings Request arrives Route matched -- 302 | 404 Instantiate store Data fetched -- 500 | 404 Page renderedToString Insert into template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment