In the last recipe, we saw how SSR works, but that recipe was limited to displaying the SSR with simple components. In this recipe, we will learn how to implement promises to connect our components to Redux, use an API to get data and render the components using SSR.
Implementing promises with Server-Side Rendering
Getting ready
We are going to use the same code from the last recipe, but we will make some changes. In this recipe, we need to install these packages:
npm install axios babel-preset-stage-0 react-router-dom redux-devtools-extension redux-thunk