React - Server Side Rendering (SSR) - DOM Server
Table of Contents
About
server side rendering (SSR) in React
The server side rendering (SSR) functionality in react can output two types of page:
- React - Server-rendered markup (renderToString / hydrate) (that will becomes dynamic after script loading)
- React - Static Markup (renderToStaticMarkup) (that stay static)
Articles Related
Pro
- An HTML page is present regardless of whether or not the React JavaScript bundle successfully downloads.
- Enables SEO (Google, DuckDuckGo…): increases the likelihood that each route of the application will be picked up by search engines.
- Enables Social media optimization (SMO) (Twitter, Facebook…)
External
Php rendering from instance..
Passing data to the application at run time is known as:
- initialization,
- bootstrapping