If you’re new to React, you may have heard about “Higher Order Components” and “Container” components. If so, you may be wondering what all the fuss is about. Or you may have even used an API for a library that provides one, and been a little confused about the terminology.
As a maintainer of Apollo’s React integration — a popular open source library that makes heavy use of High Order Components — and the author of much of its documentation, I’ve spent a bit of time getting my head around the concept myself.
I hope this post can help shed some light on the subject for you too.
This post assumes that you are familiar with React — if not there’s a lot of great content out there. For instance Sacha Greif’s
... read the whole story at medium.freecodecamp.com.