Summary
In this chapter, we looked at how reactive view library patterns enable us to build React applications more effectively when the component paradigm starts to break down.
The render prop pattern allows us to decouple data logic and rendering logic by yielding rendering control back to the consumer of a component.
The higher-order component pattern allows components to implement logic (data or rendering) against their props, without having to concern themselves with where the information comes from.
The hooks pattern means that React primitives that were only available in class components are now available as self-contained logic chunks to function components. Hooks can be composed separately of components, which makes hooks a powerful primitive and can partly replace the render prop and higher-order component patterns.
The provider pattern allows React components to pass data not only to their children but also to any descendent component.
Now that we’re...