April 2021
Intermediate to advanced
376 pages
9h 53m
English
This chapter covers
React Hooks promise to simplify component code and to promote encapsulation, reusability, and maintainability. They let function components work closely with React to manage state and hook into life-cycle events for mounting, rendering, and unmounting. Function components with hooks collocate related code and remove the need to mix unrelated code within and across the separate life-cycle methods of class-based components.
Figure 9.1 contrasts the location of code in class-based and function-based ...
Read now
Unlock full access