Although I understand higher-order components (HOC) and have used them (mainly Redux), I always found them difficult to read and there is also a risk of overwriting props on the component being wrapped in the HOC.
Render props communicate better what's being used/available as props. And it separates functionality from UI potentially. A great example of this is Kent C. Dodds' Downshift.
Looking forward to your next post!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.