Reader small image

You're reading from  React Router Quick Start Guide

Product typeBook
Published inSep 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781789532555
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Sagar Ganatra
Sagar Ganatra
author image
Sagar Ganatra

Sagar Ganatra is a frontend engineer and an architect from Bangalore, India. He has more than a decade of experience in developing web and mobile applications. He specializes in architecting projects using JavaScript and frameworks such as React, Angular, and Node. His previous books include Kendo UI Cookbook and Instant Kendo UI Mobile, both published by Packt Publishing. He also writes about frontend technologies in his blog, sagarganatra (dot) com.
Read more about Sagar Ganatra

Right arrow

Creating Isomorphic React applications

An application where the code can run on server-and client-side environments with little or no change is referred to as an Isomorphic application. In an Isomorphic application, the first request made by the user's web browser is processed by the server, and any subsequent request is processed by the client. By processing and rendering the first request on the server-side, and sending HTML, CSS, and JavaScript code provides a better user experience, and also helps search engine crawlers to index the page. All subsequent requests can then be processed by the client-side code, which is sent as part of the first response from the server.

Here's the updated request-response flow:

To render the application on the client-side, either of the <BrowserRouter> or <HashRouter> components can be used. For the purpose of this example...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
React Router Quick Start Guide
Published in: Sep 2018Publisher: PacktISBN-13: 9781789532555

Author (1)

author image
Sagar Ganatra

Sagar Ganatra is a frontend engineer and an architect from Bangalore, India. He has more than a decade of experience in developing web and mobile applications. He specializes in architecting projects using JavaScript and frameworks such as React, Angular, and Node. His previous books include Kendo UI Cookbook and Instant Kendo UI Mobile, both published by Packt Publishing. He also writes about frontend technologies in his blog, sagarganatra (dot) com.
Read more about Sagar Ganatra