Isn't it the same when using HOC? When HOC change, you have to replace all calls to it? Well it just happens not inside the component. But it's most likely on the same file.
I think the @amitnovick
comment focuses on props interface HOC provides. So, the wrapped component cares only about the props being passed, from where it doesn't matter. So, if you changed a HOC, you still able to pass the same props to the wrapped component without this HOC.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Isn't it the same when using HOC? When HOC change, you have to replace all calls to it? Well it just happens not inside the component. But it's most likely on the same file.
I think the @amitnovick comment focuses on props interface HOC provides. So, the wrapped component cares only about the props being passed, from where it doesn't matter. So, if you changed a HOC, you still able to pass the same props to the wrapped component without this HOC.