when to use higher order components react code example
Example: Higher order components (HOC) react native
const EnhancedComponent = higherOrderComponent(WrappedComponent);
const EnhancedComponent = higherOrderComponent(WrappedComponent);