1.

What is a Higher Order Component (HOC)?

Answer»

A higher-order COMPONENT or HOC in React is basically an ADVANCED technique used for REUSING component logic. HOCs are not a part of the React API. They are a PATTERN emerging from the React's compositional nature.

A higher-order component is any function that takes an ELEMENT and returns it with a new item.


Discussion

No Comment Found