Exploring Reactive View Library Patterns
Reactive view library patterns give us tools to build applications in a scalable and maintainable manner when we could benefit from breaking out of the component primitive. Using the React view library, we’ll cover different techniques for going beyond component-based composition to inject functionality into our components – the render prop, a higher-order component, hooks, and provider patterns.
We’ll cover the following main topics in this chapter:
- An introduction to reactive view library patterns and where we can benefit the most by using them
- Examples and implementation approaches for the render prop pattern
- Implementing and using the higher-order component pattern
- Using hooks to build React function components
- Multiple ways to implement the provider pattern
By the end of this chapter, you’ll be able to discern when and how to use Reactive view library patterns to build React...