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.

BY Best Interview Question ON 27 May 2021


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