An HOC should never modify the input component's prototype (or mutate the component in any way). HOCs should use composition by wrapping the input component in a container component, rather than mutation. This keeps the original component unchanged and maintains the principle that components should be predictable.