January 2019
Intermediate to advanced
460 pages
10h 33m
English
A higher-order component is a function that takes a component as input and returns a new component. This method is used in many cases wherein we have multiple components all relying on the same functionalities, such as querying for data. In these cases, you extract the logic to query for data in a separate function, which extends the original components and enables them to fetch their data. The necessary properties are passed to the component by a higher-order function.
To see a real example of this, we use the ...
Read now
Unlock full access