Great article, thanks for sharing.
Zac Braddy
11

Thanks for your feedback. I think HOCs are an effective way to abstract common functionalities and cross-cutting concerns, although not the only one.

And yes, you can think of HOCs as decorators, they are similar in concept. Even you can use it as ES7 decorators in a natural way, take as an example the consumeContext HOC from the post:

@consumeContext({color: React.PropTypes.string})
class Child extends React.Component {...}

I already referenced some articles on HOCs, I owe you the “HOCs as decorators” but there are others that I found useful:

One clap, two clap, three clap, forty?

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