Chapter 6. React on the Server
In the previous chapter, we took a look at refactoring our components. We saw how to make use of mixins and extract similar functionalities to use seamlessly across components. We also took a look at DOM interactions, using refs, and related DOM actions from a component.
In this chapter, we will explore how React functions on the server side. React allows us to render and handle components on the server to pre-render HTML, which is useful for several reasons. We will also take a look at how this affects the React component life cycle.
In this chapter, we will cover the following points:
- Server-side rendering
- Render functions
- Server-side component life cycle
At the end of chapter, we will be able to start using React components on the server side and understand its interactions and implications with the server side.