April 2020
Intermediate to advanced
716 pages
18h 55m
English
In order to load data for the React views when these are rendered on the server, we will need to list the frontend routes in a route configuration file. This file may then be used with the react-router-config module, which provides static route configuration helpers for React Router.
We will first install the module by running the following command from the command line:
yarn add react-router-config
Next, we will create a route configuration file that will list frontend React Router routes. This configuration will be used on the server to match these routes with incoming request URLs, to check whether data must be injected before the server returns the rendered markup in response to this request.
For the ...
Read now
Unlock full access