DEV Community

Discussion on: What is a Higher Order Component?

huytaquoc profile image
Huy Ta Quoc • Edited

I'd also love to see what the advantages and disadvantages of using HoCs are (in other words, when and when not to use it). As far as I can see, with the invention of hooks, HoCs are not the preferrable choice anymore. For example, in the newer version of Redux, they now use the new hook APIs instead of HoCs.

leocuellar profile image
Leo Cuéllar Author

You're right! That is somethign I will definetly talk about in the future. Thanks a lot for the suggestion