August 2017
Beginner
374 pages
10h 41m
English
We now want to inject the preloaded Redux store state so that the Redux store will already be initialized once the page loads.
We will continue where we left off in the serverSideRendering function in the server/render.js file, after calling the renderToString() function:
const storeState = JSON.stringify(store.getState()) .replace(/</g, '\\u003c')
<body> ...
Read now
Unlock full access