April 2020
Intermediate to advanced
716 pages
18h 55m
English
We will update the existing basic SSR code in server/express.js to add the data-loading functionality for the React views that will get rendered server-side. In the following sections, we will first see how to use the route configuration to load the data that needs to be injected when the server renders React components. Then, we will integrate isomorphic-fetch so the server is able to make the read fetch call to retrieve the necessary data, using the same API fetching code from the frontend. Finally, we will inject this retrieved data into the markup generated by the server.
Read now
Unlock full access