September 2024
Intermediate to advanced
743 pages
27h 48m
English
Two types of components exist in React: class components and function components. As the names suggest, some are based on classes, others on functions. For a long time, the community discussed smart and dumb components (i.e., intelligent and stupid components) because, until a few releases ago, function components could only be used to represent structures. They could not have their own states or lifecycles. However, that limitation changed with React 16.8, which introduced the Hook Application Programming Interface (API). As of that version, you can also manage a local state and the lifecycle of the component in functional components. This release also marked the demise of the heavier-weight ...
Read now
Unlock full access