Higher-Order-Component, shortly known as HOC is an advanced React Native technique to reuse the component logic. The function obtains a component and returns a new element.

NOTE: If you are a react native developer then these questions & answers will help you to crack your interview easily.



function HOC(Comp) {
     return class NewComp extends Component {
         render() {
            return <comp>

Suggest An Answer