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