What is a higher-order component in React?

What is a higher-order component in React?

A higher-order component acts as a container for other components. This helps to keep components simple and enables re-usability. They are generally used when multiple components have to use a common logic. 

Also Read:-

Leave a Comment

Your email address will not be published. Required fields are marked *