In this chapter, we learned how to compose our reusable components and make them communicate effectively. Props are a way to decouple components from each other and create a clean and well-defined interface.
Then, we went through some of the most interesting composition patterns in React. The first one was the so-called container and the other was the presentational pattern. These patterns helped us to separate the logic from the presentation and create more specialized components with a single responsibility.
We learned how to deal with context without needing to couple our components to it, thanks to HOCs. Finally, we saw how we could compose components dynamically by following the FunctionAsChild pattern.
In the next chapter, we will learn about GraphQL and how to create JWT tokens, perform a login, and create models with Sequelize.