What are Higher-Order Components in react.js?

Answer

A higher-order component (HOC) is a function that takes a component and returns a new component.
Basically, it's a pattern that is derived from React's compositional nature.
const EnhancedComponent = higherOrderComponent(WrappedComponent)

HOC can be used for many use cases:

1) Code reuse, logic and bootstrap abstraction.
2) Render hijacking.
3) State abstraction and manipulation.
4) Props manipulation.

All react js Questions

Ask your interview questions on react-js

Write Your comment or Questions if you want the answers on react-js from react-js Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---