13. Composing Hooks to Solve Complex Problems
Overview
This chapter will enable you to compose and use hooks with the Context API. You will be able to create hooks for app state management using Context API for UI-related components and to create well-encapsulated and scalable abstractions to handle and manage the app state. By the end of this chapter, you will have a solid understanding of how to use component libraries and logical units in hooks to solve complex problems.
Introduction
In the previous chapter, we saw the detailed approach of using Hooks inside a component. We extracted the component into a separate and unique hook so that we can reuse it elsewhere across multiple components. Then, we went on and externalized the logic ...
Get The React Workshop now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.