In fairness iiHOC seems like not the only way to extend methods behavior.
Paul Klimashkin
1

Hi Paul Klimashkin ! Thanks for reading!
I haven’t tested those functions but at a high level, at least, they look like they could work. But they are not strictly HOC since they do not return a new component but the same. I would call them ComponentsMonkeyPatchers. You might want to explore this pattern more and post conclusions somewhere because I think it might be something interesting.

One thing I can think of is to use the pattern to add methods to a Component, and that would make this pattern something like a Mixin. Whether it’s useful, maintainable or problematic is beyond me, and that’s why it could benefit from exploration.

Thanks!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.