Summary
In this chapter, we discussed why server-rendering makes sense and what benefits we get from using this technique. Then we learned how to implement server-side rendering in our Redux/React application. We did this by using react-router on the server to figure out which page to render. Furthermore, we used ReactDOMServer to render React components to a string. Finally, we discussed how to inject a preloaded Redux store state into our application.
In the upcoming chapters, we will start diving deeper into how Redux works, and cover how to extend Redux. In the next chapter, we will cover how to solve generic problems with higher-order reducers. We will focus on how to make our own abstractions on top of Redux to generalize behavior such ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access