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.

Example

                                        

function HOC(Comp) {
     return class NewComp extends Component {
         render() {
            return
         }
    }
}

Suggest An Answer

No suggestions Available!