© Vasan Subramanian 2017

Vasan Subramanian, Pro MERN Stack, 10.1007/978-1-4842-2653-7_11

11. Server Rendering

Vasan Subramanian

(1)Bangalore, Karnataka, India

In this chapter, we’ll explore another cornerstone of React, the ability to generate HTML on the server in addition to being able to render directly to the DOM. This lets you create isomorphic applications, that is, applications that use the same code base on the server as well as the client to do either task: render to the DOM or create HTML.

One of the benefits of server rendering is that it improves the performance and thus the user experience. But the real need for it is when you want your application to be indexed by search engines. Search engine bots typically start from the root URL ...

Get Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.