O'Reilly logo

Developing a React Edge: The JavaScript Library for User Interfaces by The League of Extraordinary Developers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Server Side Rendering 

Server side rendering is vital if you want search engines to crawl your site. It also provides a performance boost as the browser can start displaying your site while your javascript is still loading.

The virtual DOM in React.js is central to why React.js can be used for server side rendering. Each React.js component is first rendered to the virtual DOM, then React.js takes the virtual DOM and updates the real DOM with any changes. The virtual DOM, being an in memory representation of the DOM is what allows React.js to work in non browser environments like nodejs. Instead of updating the real DOM, React.js can generate a string from the virtual DOM. This allows you to use the same React.js components on the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required