DEV Community

Discussion on: What is a Higher Order Component?

Collapse
 
itswillt profile image
Will T. • 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.

Collapse
 
leocuellar profile image
Leo Cuéllar

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