DEV Community

Discussion on: Server Side Rendering pros and cons. When to use it and when to choose something else

 
stereobooster profile image
stereobooster

You know how typical React based website looks like - there is html with header, scripts, styles but without actual content, like it has <div id="main"></div> where React will be mounted as soon as application loads in the browser. With SSR this div will be prefilled with HTML, the same one as React would generate in the browser, but now it is done on the server. Make sense?

Thread Thread
 
alchermd profile image
John Alcher • Edited

Oh yeah I get it now. "rendering" in this context pertains to the ReactDOM.render(document.getElementById('root'), <ShoppingCart />); which happens on the server as opposed to being done once the client loads the page.