About this book
React Hooks create unique solutions for solving problems faced while using functional components to orchestrate the communication of the modern UI. They provide you with an easy interface to write custom data management solutions with low development and maintenance costs. Understanding how Hooks are designed enables you to use them more effectively, and this book helps you to do just that.
The book begins with a custom-built solution to reveal why Hooks are needed in the first place and takes you through the problems it is designed to solve. You'll learn about the React architecture with its two major internals, render and commit, and find out how a Hook can manage itself by hooking into them. The book then helps you to explore Hooks further by showing you how to design your own Hooks out of an existing code base and use states within context to communicate within a domain. For each Hook, you'll walk through its design and implementation by code so that you gain a solid understanding of how each one should be used. Finally, you'll get to grips with each Hook's pitfalls and discover how to effectively overcome them.
By the end of this React book, you'll have gained confidence in building and writing Hooks for developing functional and efficient web applications at scale.
- Publication date:
- February 2022