Sunday, 20 February 2022

HOC Theory

 A higher-order component (HOC) is an advanced technique in React for reusing component logic. HOCs are not part of the React API. They are a pattern that emerges from React’s compositional nature.


Concretely, a higher-order component is a function that takes a component and returns a new component.



PostedBy: pankaj_bhakre


No comments:

Post a Comment