https://github.com/boweihan/react-ssr-example
Server Side Rendering in React
https://github.com/boweihan/react-ssr-example
Last synced: 2 months ago
JSON representation
Server Side Rendering in React
- Host: GitHub
- URL: https://github.com/boweihan/react-ssr-example
- Owner: boweihan
- Created: 2019-03-15T15:51:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-16T21:32:38.000Z (about 6 years ago)
- Last Synced: 2025-01-31T09:45:39.014Z (4 months ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-ssr-example
Server Side Rendering in React
### Why Server Side Render?
Server Side Rendering / Isomorphic JavaScript / Universal JavaScript is the idea of running JavaScript on both client and server. Advantages being code reuse, improved performance and SEO gains.
### Concept
Server sends HTML document to client, client gets to see pre-rendered HTML without having to wait for JavaScript execution on the client side.
### Things to keep in mind
1. Client and Server representation of React components must be identical because there is no guarantee that attribute differences will be patched.
2. Achieving parity of server/client side bundles can be challenging
3. Error boundaries not supported on the server side
4. React Lazy/Suspense not supported on server Side